This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ld patch for frv
- From: Bernd Schmidt <bernds at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 25 Jul 2002 23:01:40 +0100 (BST)
- Subject: ld patch for frv
I'm about to contribute the frv port to gcc, and I ran across a small
problem with the linker - it complains about an undefined symbol "_stack".
As far as I can tell, there's recently been a change that obsoletes
OTHER_RELOCATING_SECTIONS, and replaces it with a new macro STACK_ADDR.
Is the following patch OK? With this, I'm able to build executables.
Bernd
* elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
(STACK_ADDR): New.
Index: elf32frv.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/elf32frv.sh,v
retrieving revision 1.1
diff -c -p -r1.1 elf32frv.sh
*** elf32frv.sh 18 Jun 2002 21:17:27 -0000 1.1
--- elf32frv.sh 25 Jul 2002 21:34:14 -0000
*************** EMBEDDED=yes
*** 9,17 ****
OTHER_EXCLUDE_FILES='*frvend.o'
OTHER_BSS_END_SYMBOLS='__end = .;'
DATA_START_SYMBOLS='__data_start = . ;'
! OTHER_RELOCATING_SECTIONS='
! PROVIDE (_stack = 0x200000);
! PROVIDE (__stack = 0x200000);'
OTHER_GOT_SYMBOLS='
. = ALIGN(8); _gp = . + 2048;
PROVIDE (gp = _gp);'
--- 9,15 ----
OTHER_EXCLUDE_FILES='*frvend.o'
OTHER_BSS_END_SYMBOLS='__end = .;'
DATA_START_SYMBOLS='__data_start = . ;'
! STACK_ADDR=0x200000
OTHER_GOT_SYMBOLS='
. = ALIGN(8); _gp = . + 2048;
PROVIDE (gp = _gp);'