This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch for DWARF support on powerpc-eabi



This patch lets the powerpc assembler deal with dwarf2 support
with -mrelocatable.  I've tested it extensively on powerpc-eabisim,
and will commit it shortly.

-- 
Geoff Keating <geoffk@redhat.com>

===File ~/patches/gas-ppc-nonload.patch=====================
2001-05-25  Geoffrey Keating  <geoffk@redhat.com>

	* config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
	any kind of relocation against a not-loaded section.

Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.23
diff -p -u -p -r1.23 tc-ppc.c
--- tc-ppc.c	2001/05/29 14:53:22	1.23
+++ tc-ppc.c	2001/06/17 19:56:39
@@ -1566,11 +1566,11 @@ ppc_elf_validate_fix (fixp, seg)
 	  && fixp->fx_r_type != BFD_RELOC_LO16_BASEREL
 	  && fixp->fx_r_type != BFD_RELOC_HI16_BASEREL
 	  && fixp->fx_r_type != BFD_RELOC_HI16_S_BASEREL
+	  && (seg->flags & SEC_LOAD) != 0
 	  && strcmp (segment_name (seg), ".got2") != 0
 	  && strcmp (segment_name (seg), ".dtors") != 0
 	  && strcmp (segment_name (seg), ".ctors") != 0
 	  && strcmp (segment_name (seg), ".fixup") != 0
-	  && strcmp (segment_name (seg), ".stab") != 0
 	  && strcmp (segment_name (seg), ".gcc_except_table") != 0
 	  && strcmp (segment_name (seg), ".eh_frame") != 0
 	  && strcmp (segment_name (seg), ".ex_shared") != 0)
============================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]