From 58da7b1b61de1ecfbcae3bf0050e8bb65d3ff547 Mon Sep 17 00:00:00 2001 From: Kaz Kojima Date: Tue, 15 Jan 2008 23:05:46 +0000 Subject: [PATCH] * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE with __data_start. * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise. --- ld/ChangeLog | 6 ++++++ ld/emulparams/shelf_nbsd.sh | 2 +- ld/emulparams/shlelf_linux.sh | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 64e6a085b25..5da7791c1f1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2008-01-15 Kaz Kojima + + * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE + with __data_start. + * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise. + 2008-01-15 Alan Modra PR 5604 diff --git a/ld/emulparams/shelf_nbsd.sh b/ld/emulparams/shelf_nbsd.sh index ad295e96845..9d331c6b78e 100644 --- a/ld/emulparams/shelf_nbsd.sh +++ b/ld/emulparams/shelf_nbsd.sh @@ -7,7 +7,7 @@ OUTPUT_FORMAT="elf32-sh-nbsd" TEXT_START_ADDR=0x400000 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" -DATA_START_SYMBOLS='__data_start = . ;'; +DATA_START_SYMBOLS='PROVIDE (__data_start = .);'; ENTRY=_start diff --git a/ld/emulparams/shlelf_linux.sh b/ld/emulparams/shlelf_linux.sh index b06df263207..f91bb52526c 100644 --- a/ld/emulparams/shlelf_linux.sh +++ b/ld/emulparams/shlelf_linux.sh @@ -12,7 +12,7 @@ TEMPLATE_NAME=elf32 GENERATE_SHLIB_SCRIPT=yes GENERATE_PIE_SCRIPT=yes -DATA_START_SYMBOLS='__data_start = . ;'; +DATA_START_SYMBOLS='PROVIDE (__data_start = .);'; OTHER_READWRITE_SECTIONS=" .note.ABI-tag ${RELOCATING-0} : { *(.note.ABI-tag) }" -- 2.30.2