aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2004-03-05 11:26:05 +0000
committerNathan Sidwell <nathan@codesourcery.com>2004-03-05 11:26:05 +0000
commite5caec89a06646ebc0324b1860fb3ff35c60f784 (patch)
tree570d52e83f0cc3deb8a7bc8f00e261adbf880b17 /bfd/elf.c
parent52b5e991eec325c9ecea3229d584636b78b4a633 (diff)
downloadgdb-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 'bfd/elf.c')
-rw-r--r--bfd/elf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 5e31f89..33b58f5 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3360,7 +3360,9 @@ map_sections_to_segments (bfd *abfd)
{
if ((hdr->flags & SEC_READONLY) == 0)
writable = TRUE;
- last_hdr = hdr;
+ /* Ignore .tbss section for segment layout purposes. */
+ if ((hdr->flags & (SEC_THREAD_LOCAL | SEC_LOAD)) != SEC_THREAD_LOCAL)
+ last_hdr = hdr;
continue;
}