summaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-19 21:41:38 +0000
committerIan Lance Taylor <iant@google.com>2008-03-19 21:41:38 +0000
commit96a2b4e4bf67a7430e7ddd06a1d0730a49e6b07e (patch)
tree071317d44af235c3687bd900897968735303ebf2 /gold/layout.cc
parent49a834f99faef9fd60532e6601c33bbeac27142b (diff)
downloadbinutils-gdb-96a2b4e4bf67a7430e7ddd06a1d0730a49e6b07e.tar.gz
Make sure the start and size of the TLS segment are aligned.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index 978828f16aa..9758597af58 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -1535,8 +1535,8 @@ Layout::set_segment_offsets(const Target* target, Output_segment* load_seg,
}
unsigned int shndx_hold = *pshndx;
- uint64_t new_addr = (*p)->set_section_addresses(false, addr, &off,
- pshndx);
+ uint64_t new_addr = (*p)->set_section_addresses(this, false, addr,
+ &off, pshndx);
// Now that we know the size of this segment, we may be able
// to save a page in memory, at the cost of wasting some
@@ -1561,8 +1561,8 @@ Layout::set_segment_offsets(const Target* target, Output_segment* load_seg,
addr = align_address(aligned_addr, common_pagesize);
addr = align_address(addr, (*p)->maximum_alignment());
off = orig_off + ((addr - orig_addr) & (abi_pagesize - 1));
- new_addr = (*p)->set_section_addresses(true, addr, &off,
- pshndx);
+ new_addr = (*p)->set_section_addresses(this, true, addr,
+ &off, pshndx);
}
}