[RFC,6/6] mach: In rtld, mark MIG routines as __TEXT_STARTUP
Checks
Context |
Check |
Description |
dj/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
dj/TryBot-32bit |
success
|
Build for i686
|
Commit Message
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
mach/Machrules | 4 ++++
1 file changed, 4 insertions(+)
@@ -217,6 +217,10 @@ $(foreach o,$(object-suffixes),$(interfaces-routines:%=%$o)): $(some-if-rtn).d
generated += $(some-if-rtn).d
endif
+# When building for rtld, we're only supposed to use the ld.so versions of
+# the RPCs during startup, so put them all into .text.startup.
+$(objpfx)rtld-RPC_%.os: rtld-CPPFLAGS += -Dmig_external=__TEXT_STARTUP
+
# If defined, $(interface-library) is `libNAME'. It is to be a library
# containing all the MiG-generated functions for the specified interfaces.