diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-03-05 11:26:05 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2004-03-05 11:26:05 +0000 |
commit | e5caec89a06646ebc0324b1860fb3ff35c60f784 (patch) | |
tree | 570d52e83f0cc3deb8a7bc8f00e261adbf880b17 /ld/testsuite/ld-scripts/size-2.d | |
parent | 52b5e991eec325c9ecea3229d584636b78b4a633 (diff) | |
download | gdb-e5caec89a06646ebc0324b1860fb3ff35c60f784.zip gdb-e5caec89a06646ebc0324b1860fb3ff35c60f784.tar.gz gdb-e5caec89a06646ebc0324b1860fb3ff35c60f784.tar.bz2 |
* elf.c (map_sections_to_segments): Ignore .tbss sections for
layout purposes.
* ldlang.c (lang_add_section): Don't force SEC_LOAD on
SEC_THREAD_LOCAL.
(IGNORE_SECTION): Ignore .tbss sections too.
(lang_size_sections_1): .tbss sections do not advance dot.
* ld-scripts/size.exp: New.
* ld-scripts/size-[12].{d,s,t}: New.
Diffstat (limited to 'ld/testsuite/ld-scripts/size-2.d')
-rw-r--r-- | ld/testsuite/ld-scripts/size-2.d | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/size-2.d b/ld/testsuite/ld-scripts/size-2.d new file mode 100644 index 0000000..3cbfb44 --- /dev/null +++ b/ld/testsuite/ld-scripts/size-2.d @@ -0,0 +1,20 @@ +#source: size-2.s +#ld: -T size-2.t +#readelf: -l + +#... +Program Headers: + Type Offset VirtAddr PhysAddr + FileSiz MemSiz Flags Align + PHDR 0x[0-9a-f]+ 0x0+0000 0x0+0000 + 0x[0-9a-f]+ 0x[0-9a-f]+ R . + LOAD 0x[0-9a-f]+ 0x0+0000 0x0+0000 + 0x0+0030 0x0+0030 R [0-9a-f]+ + TLS 0x[0-9a-f]+ 0x0+0008 0x0+0008 + 0x0+0014 0x0+002c R [0-9a-f]+ + + Section to Segment mapping: + Segment Sections... + 00 \.text \.tdata \.tbss \.map + 01 \.text \.tdata \.map + 02 \.tdata \.tbss \.map |