aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2010-10-18 05:39:23 +0000
committerCary Coutant <ccoutant@google.com>2010-10-18 05:39:23 +0000
commit5bc2f5be52354dfebe40c35c519bf19e4332956a (patch)
tree1751eb3c4e861cd2c436e0bbc998426c9229a763 /gold/layout.cc
parenteae1474374ae79c9836831d4376f8fafa99f537d (diff)
downloadbinutils-5bc2f5be52354dfebe40c35c519bf19e4332956a.zip
binutils-5bc2f5be52354dfebe40c35c519bf19e4332956a.tar.gz
binutils-5bc2f5be52354dfebe40c35c519bf19e4332956a.tar.bz2
* output.h (Output_segment::set_section_addresses): Change function
signature. Update all callers. * output.cc (Output_segment::is_first_section_relro): Ignore TLS sections. (Output_segment::set_section_addresses): Align after last TLS section. Add padding before last relro section instead of after.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index 3df7d3d..95f1de7 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -2658,7 +2658,7 @@ Layout::set_segment_offsets(const Target* target, Output_segment* load_seg,
unsigned int shndx_hold = *pshndx;
bool has_relro = false;
uint64_t new_addr = (*p)->set_section_addresses(this, false, addr,
- &increase_relro,
+ increase_relro,
&has_relro,
&off, pshndx);
@@ -2688,7 +2688,7 @@ Layout::set_segment_offsets(const Target* target, Output_segment* load_seg,
off = orig_off + ((addr - orig_addr) & (abi_pagesize - 1));
off = align_file_offset(off, addr, abi_pagesize);
new_addr = (*p)->set_section_addresses(this, true, addr,
- &increase_relro,
+ increase_relro,
&has_relro,
&off, pshndx);
}