aboutsummaryrefslogtreecommitdiff
path: root/gold/script-sections.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-29 00:04:06 +0000
committerIan Lance Taylor <iant@google.com>2008-02-29 00:04:06 +0000
commit8f2eb564ddf8002e343bd917a1f1e62f6412e862 (patch)
treee5d97984c7493e519018e1c759bd9418644ed3f3 /gold/script-sections.h
parent46132b50a2d5b5fa2662e6b7c071fa47898a2fe1 (diff)
downloadgdb-8f2eb564ddf8002e343bd917a1f1e62f6412e862.zip
gdb-8f2eb564ddf8002e343bd917a1f1e62f6412e862.tar.gz
gdb-8f2eb564ddf8002e343bd917a1f1e62f6412e862.tar.bz2
Permit scripts to refer to the addresses of output sections which were
not created.
Diffstat (limited to 'gold/script-sections.h')
-rw-r--r--gold/script-sections.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/script-sections.h b/gold/script-sections.h
index 9043dfd..73bf33f 100644
--- a/gold/script-sections.h
+++ b/gold/script-sections.h
@@ -162,6 +162,16 @@ class Script_sections
void
put_headers_in_phdrs(Output_data* file_header, Output_data* segment_headers);
+ // Look for an output section by name and return the address, the
+ // load address, the alignment, and the size. This is used when an
+ // expression refers to an output section which was not actually
+ // created. This returns true if the section was found, false
+ // otherwise.
+ bool
+ get_output_section_info(const char* name, uint64_t* address,
+ uint64_t* load_address, uint64_t* addralign,
+ uint64_t* size) const;
+
// Print the contents to the FILE. This is for debugging.
void
print(FILE*) const;