aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-11 16:50:08 +0000
committerIan Lance Taylor <iant@google.com>2008-03-11 16:50:08 +0000
commit4e2b16973ed4771143d1b23d12f941743da4003e (patch)
tree14a83252458777032a7323644c67fa898c609487 /gold/layout.h
parent3f69c6bf14b5cb5a37825d65ccc08cd9201c5ddf (diff)
downloadfsf-binutils-gdb-4e2b16973ed4771143d1b23d12f941743da4003e.zip
fsf-binutils-gdb-4e2b16973ed4771143d1b23d12f941743da4003e.tar.gz
fsf-binutils-gdb-4e2b16973ed4771143d1b23d12f941743da4003e.tar.bz2
If we a section with no flags followed by a section with the same name
with flags, put them in the same output section.
Diffstat (limited to 'gold/layout.h')
-rw-r--r--gold/layout.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h
index 1005183..1712db9 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -469,6 +469,14 @@ class Layout
make_output_section(const char* name, elfcpp::Elf_Word type,
elfcpp::Elf_Xword flags);
+ // Attach a section to a segment.
+ void
+ attach_to_segment(Output_section*, elfcpp::Elf_Xword flags);
+
+ // Allocate a previously unallocated output section.
+ void
+ allocate_output_section(Output_section*, elfcpp::Elf_Xword flags);
+
// Set the final file offsets of all the segments.
off_t
set_segment_offsets(const Target*, Output_segment*, unsigned int* pshndx);