aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-06-08 04:34:22 +0000
committerCary Coutant <ccoutant@google.com>2011-06-08 04:34:22 +0000
commitfb0e076f5c3d8bfd1f23a96031bfbfb92dc657d2 (patch)
treee71c027b6eed665011ffe15d519263a728053532 /gold/output.cc
parenta5ee4d5d1e92a48c988c6be740f17e4d4f9b166c (diff)
downloadgdb-fb0e076f5c3d8bfd1f23a96031bfbfb92dc657d2.zip
gdb-fb0e076f5c3d8bfd1f23a96031bfbfb92dc657d2.tar.gz
gdb-fb0e076f5c3d8bfd1f23a96031bfbfb92dc657d2.tar.bz2
* layout.cc (Layout::set_segment_offsets): Don't adjust layout
for incremental links. * output.cc (Output_segment::set_section_list_addresses): Remove FIXME and test for TLS or BSS.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gold/output.cc b/gold/output.cc
index 0134d33..d6d08ff 100644
--- a/gold/output.cc
+++ b/gold/output.cc
@@ -4156,10 +4156,7 @@ Output_segment::set_section_list_addresses(Layout* layout, bool reset,
}
}
- // FIXME: Need to handle TLS and .bss with incremental update.
- if (!parameters->incremental_update()
- || (*p)->is_section_flag_set(elfcpp::SHF_TLS)
- || (*p)->is_section_type(elfcpp::SHT_NOBITS))
+ if (!parameters->incremental_update())
{
off = align_address(off, align);
(*p)->set_address_and_file_offset(addr + (off - startoff), off);