2006-08-04 Nick Clifton <nickc@redhat.com>
Mike Frysinger <michael.frysing@analog.com> * 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.
This commit is contained in:
parent
5473f9ce1b
commit
a817dba36a
10
ld/ChangeLog
10
ld/ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2006-08-04 Nick Clifton <nickc@redhat.com>
|
||||||
|
Mike Frysinger <michael.frysing@analog.com>
|
||||||
|
|
||||||
|
* 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 <marcelo@kvack.org>
|
2006-08-04 Marcelo Tosatti <marcelo@kvack.org>
|
||||||
|
|
||||||
* ldmain.c (main): Initialise print_gc_sections field of link_info
|
* ldmain.c (main): Initialise print_gc_sections field of link_info
|
||||||
|
@ -10,5 +10,4 @@ ENTRY=__start
|
|||||||
TEMPLATE_NAME=elf32
|
TEMPLATE_NAME=elf32
|
||||||
GENERATE_SHLIB_SCRIPT=yes
|
GENERATE_SHLIB_SCRIPT=yes
|
||||||
EMBEDDED=yes
|
EMBEDDED=yes
|
||||||
DATA_END_SYMBOLS="__edata = .; PROVIDE (_edata = .);"
|
USER_LABEL_PREFIX=_
|
||||||
END_SYMBOLS="__end = .; PROVIDE (_end = .);"
|
|
||||||
|
@ -52,6 +52,7 @@
|
|||||||
# so that .got can be in the RELRO area. It should be set to
|
# 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
|
# the number of bytes in the beginning of .got.plt which can be
|
||||||
# in the RELRO area as well.
|
# 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 adding sections, do note that the names of some sections are used
|
||||||
# when specifying the start address of the next.
|
# when specifying the start address of the next.
|
||||||
@ -379,23 +380,23 @@ cat <<EOF
|
|||||||
|
|
||||||
.preinit_array ${RELOCATING-0} :
|
.preinit_array ${RELOCATING-0} :
|
||||||
{
|
{
|
||||||
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (__preinit_array_start = .);}}
|
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__preinit_array_start = .);}}
|
||||||
KEEP (*(.preinit_array))
|
KEEP (*(.preinit_array))
|
||||||
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (__preinit_array_end = .);}}
|
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__preinit_array_end = .);}}
|
||||||
}
|
}
|
||||||
.init_array ${RELOCATING-0} :
|
.init_array ${RELOCATING-0} :
|
||||||
{
|
{
|
||||||
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (__init_array_start = .);}}
|
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__init_array_start = .);}}
|
||||||
KEEP (*(SORT(.init_array.*)))
|
KEEP (*(SORT(.init_array.*)))
|
||||||
KEEP (*(.init_array))
|
KEEP (*(.init_array))
|
||||||
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (__init_array_end = .);}}
|
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__init_array_end = .);}}
|
||||||
}
|
}
|
||||||
.fini_array ${RELOCATING-0} :
|
.fini_array ${RELOCATING-0} :
|
||||||
{
|
{
|
||||||
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (__fini_array_start = .);}}
|
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__fini_array_start = .);}}
|
||||||
KEEP (*(.fini_array))
|
KEEP (*(.fini_array))
|
||||||
KEEP (*(SORT(.fini_array.*)))
|
KEEP (*(SORT(.fini_array.*)))
|
||||||
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (__fini_array_end = .);}}
|
${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__fini_array_end = .);}}
|
||||||
}
|
}
|
||||||
${SMALL_DATA_CTOR-${RELOCATING+${CTOR}}}
|
${SMALL_DATA_CTOR-${RELOCATING+${CTOR}}}
|
||||||
${SMALL_DATA_DTOR-${RELOCATING+${DTOR}}}
|
${SMALL_DATA_DTOR-${RELOCATING+${DTOR}}}
|
||||||
@ -431,7 +432,7 @@ cat <<EOF
|
|||||||
${SDATA_GOT+${OTHER_GOT_SECTIONS}}
|
${SDATA_GOT+${OTHER_GOT_SECTIONS}}
|
||||||
${SDATA}
|
${SDATA}
|
||||||
${OTHER_SDATA_SECTIONS}
|
${OTHER_SDATA_SECTIONS}
|
||||||
${RELOCATING+${DATA_END_SYMBOLS-_edata = .; PROVIDE (edata = .);}}
|
${RELOCATING+${DATA_END_SYMBOLS-${USER_LABEL_PREFIX}_edata = .; PROVIDE (${USER_LABEL_PREFIX}edata = .);}}
|
||||||
${RELOCATING+__bss_start = .;}
|
${RELOCATING+__bss_start = .;}
|
||||||
${RELOCATING+${OTHER_BSS_SYMBOLS}}
|
${RELOCATING+${OTHER_BSS_SYMBOLS}}
|
||||||
${SBSS}
|
${SBSS}
|
||||||
@ -453,7 +454,7 @@ cat <<EOF
|
|||||||
${LARGE_SECTIONS}
|
${LARGE_SECTIONS}
|
||||||
${RELOCATING+. = ALIGN(${ALIGNMENT});}
|
${RELOCATING+. = ALIGN(${ALIGNMENT});}
|
||||||
${RELOCATING+${OTHER_END_SYMBOLS}}
|
${RELOCATING+${OTHER_END_SYMBOLS}}
|
||||||
${RELOCATING+${END_SYMBOLS-_end = .; PROVIDE (end = .);}}
|
${RELOCATING+${END_SYMBOLS-${USER_LABEL_PREFIX}_end = .; PROVIDE (${USER_LABEL_PREFIX}end = .);}}
|
||||||
${RELOCATING+${DATA_SEGMENT_END}}
|
${RELOCATING+${DATA_SEGMENT_END}}
|
||||||
|
|
||||||
/* Stabs debugging sections. */
|
/* Stabs debugging sections. */
|
||||||
|
Loading…
Reference in New Issue
Block a user