* emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
* emulparams/hppalinux.sh: Likewise. * scripttempl/elf.sc: Place .plt just before .got when .plt is in data segment and PLT_BEFORE_GOT is defined.
This commit is contained in:
parent
7561d4504f
commit
b71a518155
|
@ -1,3 +1,10 @@
|
||||||
|
2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||||
|
|
||||||
|
* emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
|
||||||
|
* emulparams/hppalinux.sh: Likewise.
|
||||||
|
* scripttempl/elf.sc: Place .plt just before .got when .plt is in
|
||||||
|
data segment and PLT_BEFORE_GOT is defined.
|
||||||
|
|
||||||
2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
|
2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
|
||||||
|
|
||||||
* ld.texinfo (WIN32): Document PE weak symbols.
|
* ld.texinfo (WIN32): Document PE weak symbols.
|
||||||
|
|
|
@ -53,6 +53,7 @@ OTHER_GOT_RELOC_SECTIONS="
|
||||||
DATA_START_SYMBOLS='. += 16;'
|
DATA_START_SYMBOLS='. += 16;'
|
||||||
|
|
||||||
DATA_PLT=
|
DATA_PLT=
|
||||||
|
PLT_BEFORE_GOT=
|
||||||
|
|
||||||
# .dynamic should be at the start of the .text segment.
|
# .dynamic should be at the start of the .text segment.
|
||||||
TEXT_DYNAMIC=
|
TEXT_DYNAMIC=
|
||||||
|
|
|
@ -15,6 +15,7 @@ OTHER_READONLY_SECTIONS="
|
||||||
.PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }"
|
.PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }"
|
||||||
DATA_START_SYMBOLS='PROVIDE ($global$ = .);'
|
DATA_START_SYMBOLS='PROVIDE ($global$ = .);'
|
||||||
DATA_PLT=
|
DATA_PLT=
|
||||||
|
PLT_BEFORE_GOT=
|
||||||
GENERATE_SHLIB_SCRIPT=yes
|
GENERATE_SHLIB_SCRIPT=yes
|
||||||
TEMPLATE_NAME=elf32
|
TEMPLATE_NAME=elf32
|
||||||
EXTRA_EM_FILE=hppaelf
|
EXTRA_EM_FILE=hppaelf
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
# OTHER_BSS_SYMBOLS - symbols that appear at the start of the
|
# OTHER_BSS_SYMBOLS - symbols that appear at the start of the
|
||||||
# .bss section besides __bss_start.
|
# .bss section besides __bss_start.
|
||||||
# DATA_PLT - .plt should be in data segment, not text segment.
|
# DATA_PLT - .plt should be in data segment, not text segment.
|
||||||
|
# PLT_BEFORE_GOT - .plt just before .got when .plt is in data segement.
|
||||||
# BSS_PLT - .plt should be in bss segment
|
# BSS_PLT - .plt should be in bss segment
|
||||||
# TEXT_DYNAMIC - .dynamic in text segment, not data segment.
|
# TEXT_DYNAMIC - .dynamic in text segment, not data segment.
|
||||||
# EMBEDDED - whether this is for an embedded system.
|
# EMBEDDED - whether this is for an embedded system.
|
||||||
|
@ -358,7 +359,7 @@ cat <<EOF
|
||||||
${RELOCATING+${DATA_SEGMENT_RELRO_END}}
|
${RELOCATING+${DATA_SEGMENT_RELRO_END}}
|
||||||
${NO_SMALL_DATA+${RELRO_NOW-${SEPARATE_GOTPLT-${GOT}}}}
|
${NO_SMALL_DATA+${RELRO_NOW-${SEPARATE_GOTPLT-${GOT}}}}
|
||||||
|
|
||||||
${DATA_PLT+${PLT}}
|
${DATA_PLT+${PLT_BEFORE_GOT-${PLT}}}
|
||||||
|
|
||||||
.data ${RELOCATING-0} :
|
.data ${RELOCATING-0} :
|
||||||
{
|
{
|
||||||
|
@ -370,6 +371,7 @@ cat <<EOF
|
||||||
.data1 ${RELOCATING-0} : { *(.data1) }
|
.data1 ${RELOCATING-0} : { *(.data1) }
|
||||||
${WRITABLE_RODATA+${RODATA}}
|
${WRITABLE_RODATA+${RODATA}}
|
||||||
${OTHER_READWRITE_SECTIONS}
|
${OTHER_READWRITE_SECTIONS}
|
||||||
|
${DATA_PLT+${PLT_BEFORE_GOT+${PLT}}}
|
||||||
${RELOCATING+${OTHER_GOT_SYMBOLS}}
|
${RELOCATING+${OTHER_GOT_SYMBOLS}}
|
||||||
${NO_SMALL_DATA-${GOT}}
|
${NO_SMALL_DATA-${GOT}}
|
||||||
${OTHER_GOT_SECTIONS}
|
${OTHER_GOT_SECTIONS}
|
||||||
|
|
Loading…
Reference in New Issue