diff options
author | mirabilos <thorsten.glaser@teckids.org> | 2017-03-25 23:41:37 +0300 |
---|---|---|
committer | mirabilos <thorsten.glaser@teckids.org> | 2017-03-25 23:41:37 +0300 |
commit | ec38927d65efc0a17f7a5278b37b4bbd5f623c41 (patch) | |
tree | 6dfa9715cd68d1a4448be1eaec89ac768639919b | |
parent | 3ce63c3374a915ae82c5c145f1f692c8d8f0cade (diff) |
use i386 label-relative mechanism also for non-ELF formats
-rw-r--r-- | src/common.asm | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/common.asm b/src/common.asm index 1eb9c64..b2fefb2 100644 --- a/src/common.asm +++ b/src/common.asm @@ -61,9 +61,8 @@ section .note.GNU-stack noalloc noexec nowrite progbits %endif %ifdef ASM_ARCH_I386 -%ifdef is_elf %ifdef PIC -; i386 ELF PIC +; i386 PIC %macro PREPARE_RODATA 0 section .text ..@get_caller_address: @@ -80,14 +79,7 @@ align 16 %endmacro %define lsym(name) ebx + name - ..@rodata_begin %else -; i386 ELF, not PIC, default case (see below) -%endif -%else -; i386 not ELF -%ifdef PIC -%error "Position-Independent Code is currently only supported for ELF" -%endif -; i386 not ELF, not PIC, default case (see below) +; i386 non-PIC; default case for lsym, RETRIEVE_RODATA and PREPARE_RODATA %endif %endif |