This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
pr2342
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Wed, 10 May 2006 14:15:52 +0930
- Subject: pr2342
I don't know what to do about pr2342. I'm inclined to revert my
2006-02-16 bfd/elflink.c change for 2.17, simply because I haven't
developed a proper fix. In any case, zeroing out debug fields pointing
into discarded sections has its own problems. eg, in some sections, a
zero is a list terminator so poking zeros in the middle of a list isn't
correct. We really need to edit the debug info, and fix all the refs.
PR 2342
* elflink.c (_bfd_elf_default_action_discarded): Revert 2006-02-16.
Index: bfd/elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.211
diff -u -p -r1.211 elflink.c
--- bfd/elflink.c 2 May 2006 01:41:20 -0000 1.211
+++ bfd/elflink.c 10 May 2006 04:24:37 -0000
@@ -6758,7 +6758,7 @@ unsigned int
_bfd_elf_default_action_discarded (asection *sec)
{
if (sec->flags & SEC_DEBUGGING)
- return 0;
+ return PRETEND;
if (strcmp (".eh_frame", sec->name) == 0)
return 0;
--
Alan Modra
IBM OzLabs - Linux Technology Centre