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.t | |
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.t')
-rw-r--r-- | ld/testsuite/ld-scripts/size-2.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/size-2.t b/ld/testsuite/ld-scripts/size-2.t new file mode 100644 index 0000000..3549321 --- /dev/null +++ b/ld/testsuite/ld-scripts/size-2.t @@ -0,0 +1,21 @@ +PHDRS +{ + header PT_PHDR FILEHDR PHDRS ; + + image PT_LOAD FLAGS (4); + tls PT_TLS FLAGS (4); + +} +SECTIONS +{ + .text : { *(.text) } :image + .tdata : { *(.tdata) } :image :tls + .tbss : { *(.tbss) } :image : tls + .map : { + LONG (SIZEOF (.text)) + LONG (SIZEOF (.data)) + LONG (SIZEOF (.bss)) + LONG (SIZEOF (.tdata)) + LONG (SIZEOF (.tbss)) + } :image +} |