From a817dba36a13db3fb7b90a6eb23063e1c84c88de Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 6 Aug 2006 05:23:16 +0000 Subject: [PATCH] 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. --- ld/ChangeLog | 10 ++++++++++ ld/emulparams/bfin.sh | 3 +-- ld/scripttempl/elf.sc | 17 +++++++++-------- 3 files changed, 20 insertions(+), 10 deletions(-) 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 <