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]

Fix cris-* fallout from Re: Fix PR12763, .tbss mishandling


> Date: Mon, 23 May 2011 15:11:25 +0930
> From: Alan Modra <amodra@gmail.com>

> bfd/
> 	PR 12763
> 	* elf.c (assign_file_positions_for_load_sections): Set sh_offset for
> 	.tbss, and page align same for all SHT_NOBITS sections.
> ld/
> 	PR 12763
> 	* ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
> 	like sections to existing .sdata2, and similarly for orphan TLS
> 	sections.
> 	* emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.

And here I am, playing catch-up again.  Should we change the
rule regarding who is to update the test-suite?  Committed.

ld/testsuite:

	* ld-cris/tls-e-tpoffcomm1.d: Adjust for second PR12763 change,
	setting TLS file offset.

Index: ld-cris/tls-e-tpoffcomm1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d,v
retrieving revision 1.2
diff -p -u -r1.2 tls-e-tpoffcomm1.d
--- ld-cris/tls-e-tpoffcomm1.d	21 May 2011 01:47:24 -0000	1.2
+++ ld-cris/tls-e-tpoffcomm1.d	24 May 2011 00:02:11 -0000
@@ -12,7 +12,7 @@
 Program Header:
     LOAD off    0x0+ vaddr 0x0+80000 paddr 0x0+80000 align 2\*\*13
          filesz 0x0+84 memsz 0x0+84 flags r-x
-     TLS off    0x0+ vaddr 0x0+82084 paddr 0x0+82084 align 2\*\*2
+     TLS off    0x0+84 vaddr 0x0+82084 paddr 0x0+82084 align 2\*\*2
          filesz 0x0+ memsz 0x0+8 flags r--
 private flags = 0:
 
@@ -20,7 +20,7 @@ Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         0+10  0+80074  0+80074  0+74  2\*\*1
                   CONTENTS, ALLOC, LOAD, READONLY, CODE
-  1 .tbss         0+8  0+82084  0+82084  0+  2\*\*2
+  1 .tbss         0+8  0+82084  0+82084  0+84  2\*\*2
                   ALLOC, THREAD_LOCAL
 SYMBOL TABLE:
 0+80074 l    d  .text	0+ .text

brgds, H-P


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