aboutsummaryrefslogtreecommitdiff
path: root/gold/script-sections.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/script-sections.h')
-rw-r--r--gold/script-sections.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gold/script-sections.h b/gold/script-sections.h
index 1a0b760..ee1adae 100644
--- a/gold/script-sections.h
+++ b/gold/script-sections.h
@@ -234,10 +234,20 @@ class Script_sections
Expression*
find_memory_region_length(const char*, size_t);
- // Find a memory region.
+ // Find a memory region by name.
Memory_region*
find_memory_region(const char*, size_t);
+ // Find a memory region that should be used by a given output section.
+ Memory_region*
+ find_memory_region(Output_section_definition*, bool,
+ Output_section_definition**);
+
+ // Returns true if the provide block of memory is contained
+ // within a memory region.
+ bool
+ block_in_region(Symbol_table*, Layout*, uint64_t, uint64_t) const;
+
// Set the memory region of the section.
void
set_memory_region(Memory_region*, bool);