From fb071309905c2911bd696c2cd0eafdae02d1e80b Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 1 Oct 2024 18:20:10 -0400 Subject: dont require phdr to link --- mld/link.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mld/link.h') 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; -- cgit v1.2.3-freya