This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: fix memory regions with displaced BSS data
On Mon, May 25, 2009 at 02:36:05PM +0200, Ulrich Weigand wrote:
> It looks like this change causes problems with NOTE section on the SPU:
Committed.
* ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
Index: ld/ldlang.c
===================================================================
RCS file: /cvs/src/src/ld/ldlang.c,v
retrieving revision 1.309
diff -u -p -r1.309 ldlang.c
--- ld/ldlang.c 22 May 2009 11:27:43 -0000 1.309
+++ ld/ldlang.c 26 May 2009 01:19:07 -0000
@@ -4498,7 +4498,9 @@ lang_check_section_addresses (void)
for (s = link_info.output_bfd->sections; s != NULL; s = s->next)
{
/* Only consider loadable sections with real contents. */
- if ((s->flags & SEC_NEVER_LOAD) || !(s->flags & SEC_LOAD)
+ if ((s->flags & SEC_NEVER_LOAD)
+ || !(s->flags & SEC_LOAD)
+ || !(s->flags & SEC_ALLOC)
|| s->size == 0)
continue;
--
Alan Modra
Australia Development Lab, IBM