summaryrefslogtreecommitdiff
path: root/mld/link.h
diff options
context:
space:
mode:
Diffstat (limited to 'mld/link.h')
-rw-r--r--mld/link.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mld/link.h b/mld/link.h
index 435a8d5..93a2ccd 100644
--- a/mld/link.h
+++ b/mld/link.h
@@ -35,6 +35,9 @@
#define TEXT_VADDR_MIN 0x00400000
#define DATA_VADDR_MIN 0x10000000
+// alignment of a section
+#define SEC_ALIGN 0x1000
+
// pre define
struct linker;
struct object;
@@ -42,6 +45,7 @@ struct segment;
struct string_table;
struct symbol_table;
struct symbol_table_mapping;
+struct glboff_table;
///
/// relocation table
@@ -220,6 +224,10 @@ struct object {
// program table
Elf32_Phdr *phdr;
size_t phdr_len;
+ bool phdr_local; // if phdr was created though malloc
+
+ // phdr <=> shdr mappings
+ uint32_t *phdr_to_shdr_mapping;
// object meta
const char *name;