From: Mike Frysinger Date: Sun, 6 Aug 2006 05:23:16 +0000 (+0000) Subject: 2006-08-04 Nick Clifton X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a817dba36a13db3fb7b90a6eb23063e1c84c88de;p=binutils-gdb.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 1ee78d4e381..7c0aba9fb44 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 b7695a4c8b9..73e2b946a5a 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 ebe387e7e2d..28a94fe835e 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 <