This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 2/3] ld: better handling of lma region for orphan sections
On Wed, Feb 22, 2017 at 12:04:06AM +0000, Andrew Burgess wrote:
> * ldlang.c (lang_leave_output_section_statement): Move lma_region
> logic to...
> (lang_propagate_lma_regions): ...this new function.
> (lang_process): Call new function.
> * testsuite/ld-elf/orphan5.d: New file.
> * testsuite/ld-elf/orphan5.ld: New file.
> * testsuite/ld-elf/orphan5.s: New file.
> * NEWS: Mention change in behaviour.
OK, but
> --- /dev/null
> +++ b/ld/testsuite/ld-elf/orphan5.s
> @@ -0,0 +1,11 @@
> + .text
> + .byte 0
Make this 8 bytes instead, ditto below. You will of course need to
adjust orphan5.d to suit, and that should allow most of the notarget
entries to be removed.
> +
> + .data
> + .byte 0
> +
> + .section ".data.1", "aw"
> + .byte 0
> +
> + .section ".rodata", "a"
> + .byte 0
--
Alan Modra
Australia Development Lab, IBM