[PATCH] Issue a linker error if TLS sections are not adjacent
Alan Modra
amodra@gmail.com
Thu Jan 23 03:55:00 GMT 2014
On Wed, Jan 22, 2014 at 11:30:13AM -0800, H.J. Lu wrote:
> PR ld/16498
> * elf.c (_bfd_elf_map_sections_to_segments): Issue a linker error
> if TLS sections are not adjacent.
This part is OK.
> +SECTIONS
> +{
> + .tdata : { *(.tdata) }
> + .data : { *(.data)
> + }
> +}
On the other hand, the testcase is really showing a fault in orphan
section handling. If ld was a little more clever, it would put .tbss
after .tdata and your testcase would no longer give an error.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list