aboutsummaryrefslogtreecommitdiff
path: root/ld/ldexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldexp.h')
-rw-r--r--ld/ldexp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/ldexp.h b/ld/ldexp.h
index a90f1ef..addf834 100644
--- a/ld/ldexp.h
+++ b/ld/ldexp.h
@@ -103,6 +103,22 @@ extern struct exp_data_seg {
bfd_vma base, relro_end, end, pagesize;
} exp_data_seg;
+/* A maps from a segment name to a base address. */
+typedef struct segment_struct {
+ /* The next segment in the linked list. */
+ struct segment_struct *next;
+ /* The name of the sgement. */
+ const char *name;
+ /* The base address for the segment. */
+ bfd_vma value;
+ /* True if a SEGMENT_START directive corresponding to this segment
+ has been seen. */
+ bfd_boolean used;
+} segment_type;
+
+/* The segments specified by the user on the command-line. */
+extern segment_type *segments;
+
typedef struct _fill_type fill_type;
etree_type *exp_intop