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]
Other format: [Raw text]

Re: [PATCH/RFA] Fix C-referenceable sections with explicit LMAs


Hi Jason,

> Ok, the following fixes the test case so that it actually
> demonstrates why not adjusting SIZEOF doesn't work properly.
> Without my change to SIZEOF to account for orphans that are added to
> the section, the linker will produce the following error:
> 
> arm-unknown-netbsdelf1.7-ld: section .data [10800008 -> 1080000b]
> overlaps section link_set_1 [10800008 -> 1080000b] 
> 
> ...and with my change, the test case passes.

I think that Alan Modra's recent changes have already fixed this.
Certainly your test case assembles and links without errors and
without your patch applied.  (It does not pass however as the sections
are not layed out as expected.  I am not sure if this is a bug or
not).  Can you check to see if your patch is still needed please ?
 

> 	* lib/ld-lib.exp (is_elf_format): Match NetBSD ELF targets.

This part of the patch is approved to be applied independently of the
rest of the patch.

Cheers
        Nick

PS.  I tried to configure an "arm-netbsdelf" toolchain to test the
patch, but the configuration failed to actually create any build
directories :-(  So I used an arm-linux toolchain instead.


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