This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH/RFA] Fix C-referenceable sections with explicit LMAs
On Fri, Dec 06, 2002 at 09:47:42AM -0800, Jason R Thorpe wrote:
> My SIZEOF_UNADJ hack is no longer required with Alan's fix, which he
> checked into the mainline. I think my SIZEOF hack still may be required,
No way. You can't change SIZEOF to mean "size of the output section
specified + random other following output sections"
You do need this additional patch though.
* ldlang.c (init_os): Ensure sections mentioned in load_base
RCS file: /cvs/src/src/ld/ldlang.c,v
retrieving revision 1.105
diff -u -p -r1.105 ldlang.c
--- ldlang.c 30 Nov 2002 08:39:45 -0000 1.105
+++ ldlang.c 6 Dec 2002 22:27:30 -0000
@@ -912,6 +912,9 @@ init_os (s)
mention are initialized. */
if (s->addr_tree != NULL)
+ if (s->load_base != NULL)
+ exp_init_os (s->load_base);
/* Make sure that all output sections mentioned in an expression are
IBM OzLabs - Linux Technology Centre