This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] libgloss/m68k/fido.sc: Catch .got.plt and .got.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: newlib at sources dot redhat dot com
- Date: Tue, 22 May 2007 08:52:35 -0700
- Subject: [patch] libgloss/m68k/fido.sc: Catch .got.plt and .got.
Hi,
Attached is a patch to catch .got.plt and .got.
If we do not catch .got.plt and .got, some PIC testcases in gcc fail.
While I'm at this, I'd like to move .jcr to the same location as in
cf.sc, just to be consistent.
Tested by running the pic testcases in gcc, such as
gcc.dg/20010912-1.c and gcc.dg/20021018-1.c. OK to apply?
Kazu Hirata
2007-05-22 Kazu Hirata <kazu@codesourcery.com>
* m68k/fido.sc (.data): Move .jcr to .text. Catch .got.plt
and .got.
Index: libgloss/m68k/fido.sc
===================================================================
RCS file: /cvs/src/src/libgloss/m68k/fido.sc,v
retrieving revision 1.3
diff -u -d -p -r1.3 fido.sc
--- libgloss/m68k/fido.sc 27 Apr 2007 16:00:45 -0000 1.3
+++ libgloss/m68k/fido.sc 22 May 2007 15:48:14 -0000
@@ -156,6 +156,11 @@ SECTIONS {
KEEP (*(SORT(.dtors.*)))
KEEP (*crtend.o(.dtors))
+ . = ALIGN(0x4);
+ KEEP (*crtbegin.o(.jcr))
+ KEEP (*(EXCLUDE_FILE (*crtend.o) .jcr))
+ KEEP (*crtend.o(.jcr))
+
*(.rodata .rodata.*)
*(.gnu.linkonce.r.*)
*(.gcc_except_table)
@@ -187,7 +192,7 @@ SECTIONS {
.data :
{
_data = .;
- KEEP (*(.jcr));
+ *(.got.plt) *(.got)
*(.shdata);
*(.data .data.*)
*(.gnu.linkonce.d.*)