This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH/RFA] Fix C-referenceable sections with explicit LMAs
> 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.
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.