diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-03-05 11:26:04 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2004-03-05 11:26:04 +0000 |
commit | 14fba4884304a83d2950919e521294026dfb3b37 (patch) | |
tree | af49bc23b8848ff26fc02c6f0a252477806679a8 /bfd/elf.c | |
parent | 3f9589a786ab4f8d6d777c38cab8d692eb4f9823 (diff) | |
download | gdb-14fba4884304a83d2950919e521294026dfb3b37.tar.gz |
* 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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c index 5e31f893583..33b58f5bead 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; } |