Skip to content

Commit 54ad24d

Browse files
committed
build system: turn off x bits on .so files for uspace rt comps
Not sure why gcc sets the execute bits on .so output files, but this sledge hammer fixes the problem.
1 parent d6f6ac1 commit 54ad24d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,7 @@ modules: $(patsubst %.o,../rtlib/%.so,$(obj-m))
10631063
$(Q)objcopy -j .rtapi_export -O binary objects/$*.tmp objects/$*.sym
10641064
$(Q)(echo '{ global : '; tr -s '\0' < objects/$*.sym | xargs -r0 printf '%s;\n' | grep .; echo 'local : * ; };') > objects/$*.ver
10651065
$(Q)$(CC) -shared -Bsymbolic $(LDFLAGS) -Wl,--version-script,objects/$*.ver -o $@ $^ -lm
1066+
$(Q)chmod -x $@
10661067

10671068
RTFLAGS += -fno-strict-aliasing -fwrapv
10681069

src/Makefile.modinc.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ $(foreach mod,$(patsubst %.o,%,$(obj-m)),\
121121
$(Q)objcopy -j .rtapi_export -O binary $*.tmp $*.sym
122122
$(Q)(echo '{ global : '; tr -s '\0' < $*.sym | xargs -r0 printf '%s;\n' | grep .; echo 'local : * ; };') > $*.ver
123123
$(Q)$(CC) -shared -Bsymbolic $(LDFLAGS) -Wl,--version-script,$*.ver -o $@ $^ -lm
124+
$(Q)chmod -x $@
124125
endif
125126

126127
ifeq ($(BUILDSYS),normal)

0 commit comments

Comments
 (0)