[PATCH] -mminimal-toc removal 4: Use --emit-stub-syms

Anton Blanchard anton at samba.org
Wed Aug 25 00:26:42 EST 2004


Use the --emit-stub-syms linker option. Without this the trampolines end
up inside whatever label happened to be before them.

An example of a trampoline with --emit-stub-syms used:

c000000000046e74 <00000075..device_shutdown+0>:
c000000000046e74:       f8 41 00 28     std     r2,40(r1)
c000000000046e78:       3c 42 00 01     addis   r2,r2,1
c000000000046e7c:       38 42 ef f0     addi    r2,r2,-4112
c000000000046e80:       48 1f 74 7c     b       c00000000023e2fc <.device_shutdown>

Signed-off-by: Anton Blanchard <anton at samba.org>

---

 mminimal_toc_die_die_die-anton/arch/ppc64/Makefile        |    2

diff -puN arch/ppc64/Makefile~mminimal_toc_die_die_die_4 arch/ppc64/Makefile
--- mminimal_toc_die_die_die/arch/ppc64/Makefile~mminimal_toc_die_die_die_4	2004-08-24 23:30:06.929220191 +1000
+++ mminimal_toc_die_die_die-anton/arch/ppc64/Makefile	2004-08-24 23:40:24.579542815 +1000
@@ -28,6 +28,8 @@ LDFLAGS		:= -m elf64ppc
 LDFLAGS_vmlinux	:= -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD)
 CFLAGS		+= -msoft-float -pipe -Wno-uninitialized -mtraceback=none

+LDFLAGS_vmlinux += --emit-stub-syms
+
 ifeq ($(CONFIG_POWER4_ONLY),y)
 	CFLAGS += $(call cc-option,-mcpu=power4)
 else
_

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list