From: vapier Date: Sun, 6 Aug 2006 05:23:16 +0000 (+0000) Subject: 2006-08-04 Nick Clifton X-Git-Tag: drop_9x_support_start~2030 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=31a9687709d3eb2517d8efde96fdbe35ea20f1c2;p=pf3gnuchains%2Fpf3gnuchains4x.git 2006-08-04 Nick Clifton Mike Frysinger * scripttempl/elf.sc (USER_LABEL_PREFIX): Define. (__preinit_array_start, __preinit_array_end, __init_array_start, __init_array_end, __fini_array_start, __fini_array_end, edata, end): Use ${USER_LABEL_PREFIX}. * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset. (USER_LABEL_PREFIX): Set. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 1ee78d4e38..7c0aba9fb4 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,13 @@ +2006-08-04 Nick Clifton + Mike Frysinger + + * scripttempl/elf.sc (USER_LABEL_PREFIX): Define. + (__preinit_array_start, __preinit_array_end, __init_array_start, + __init_array_end, __fini_array_start, __fini_array_end, edata, end): + Use ${USER_LABEL_PREFIX}. + * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset. + (USER_LABEL_PREFIX): Set. + 2006-08-04 Marcelo Tosatti * ldmain.c (main): Initialise print_gc_sections field of link_info diff --git a/ld/emulparams/bfin.sh b/ld/emulparams/bfin.sh index b7695a4c8b..73e2b946a5 100755 --- a/ld/emulparams/bfin.sh +++ b/ld/emulparams/bfin.sh @@ -10,5 +10,4 @@ ENTRY=__start TEMPLATE_NAME=elf32 GENERATE_SHLIB_SCRIPT=yes EMBEDDED=yes -DATA_END_SYMBOLS="__edata = .; PROVIDE (_edata = .);" -END_SYMBOLS="__end = .; PROVIDE (_end = .);" +USER_LABEL_PREFIX=_ diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index ebe387e7e2..28a94fe835 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -52,6 +52,7 @@ # so that .got can be in the RELRO area. It should be set to # the number of bytes in the beginning of .got.plt which can be # in the RELRO area as well. +# USER_LABEL_PREFIX - prefix to add to user-visible symbols. # # When adding sections, do note that the names of some sections are used # when specifying the start address of the next. @@ -379,23 +380,23 @@ cat <