This is the mail archive of the binutils@sourceware.org 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] Issue a linker error if TLS sections are not adjacent


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


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