mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Add __data_start symbol to all ELF archs to consistently mark the beginning
of the writable sections. This is useful for garbage collectors such as boehm-gc to locate these sections in a uniform way. input and okay drahn@, miod@
This commit is contained in:
parent
fbbb8b44cc
commit
d110c1db53
@ -4,3 +4,4 @@ TEXT_START_ADDR="0x10000000"
|
||||
. ${srcdir}/emulparams/elf_obsd.sh
|
||||
# XXX causes GOT oflows
|
||||
NO_PAD_CDTOR=y
|
||||
DATA_START_SYMBOLS='_fdata = . ; __data_start = . ;'
|
||||
|
@ -4,3 +4,4 @@ TEXT_START_ADDR="0x10000000"
|
||||
. ${srcdir}/emulparams/elf_obsd.sh
|
||||
# XXX causes GOT oflows
|
||||
NO_PAD_CDTOR=y
|
||||
DATA_START_SYMBOLS='_fdata = . ; __data_start = . ;'
|
||||
|
@ -5,3 +5,4 @@ RODATA_PADSIZE=${MAXPAGESIZE}
|
||||
RODATA_ALIGN=". = ALIGN(${RODATA_PADSIZE}) + (. & (${RODATA_PADSIZE} - 1))"
|
||||
PAD_GOT=
|
||||
PAD_PLT=
|
||||
DATA_START_SYMBOLS='__data_start = . ;'
|
||||
|
@ -10,8 +10,10 @@ MAXPAGESIZE=0x1000
|
||||
ENTRY="__start"
|
||||
MACHINE=hppa1.1 # We use 1.1 specific features.
|
||||
OTHER_READONLY_SECTIONS=".PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }"
|
||||
DATA_START_SYMBOLS='PROVIDE ($global$ = .);'
|
||||
DATA_NONEXEC_PLT=
|
||||
GENERATE_SHLIB_SCRIPT=yes
|
||||
|
||||
. ${srcdir}/emulparams/elf_obsd.sh
|
||||
|
||||
#override elf_obsd.sh
|
||||
DATA_START_SYMBOLS='PROVIDE ($global$ = .); __data_start = . ;'
|
||||
|
Loading…
Reference in New Issue
Block a user