diff options
author | Freya Murphy <freya@freyacat.org> | 2024-10-01 18:20:10 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-10-01 18:20:10 -0400 |
commit | fb071309905c2911bd696c2cd0eafdae02d1e80b (patch) | |
tree | bb931066a32ef069773a17f6e52c1b1d7a919b9b /mld/link.h | |
parent | add nop pseudo code (diff) | |
download | mips-fb071309905c2911bd696c2cd0eafdae02d1e80b.tar.gz mips-fb071309905c2911bd696c2cd0eafdae02d1e80b.tar.bz2 mips-fb071309905c2911bd696c2cd0eafdae02d1e80b.zip |
dont require phdr to link
Diffstat (limited to 'mld/link.h')
-rw-r--r-- | mld/link.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |