diff options
author | H. Peter Anvin <hpa@zytor.com> | 2018-06-15 18:02:08 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2018-06-15 18:02:08 -0700 |
commit | 8f3a62f154a55cd57262e9a9e802765735e5f631 (patch) | |
tree | 38bd10f619c26505dd081a3d92e56d4a8e53f8d6 /output | |
parent | a9b596476b33eaf0afae51bb0de5d59f6c23505a (diff) | |
download | nasm-8f3a62f154a55cd57262e9a9e802765735e5f631.tar.gz |
outelf: remove additional tests for [ABSOLUTE]
This test is now centralized, no reason to duplicate everywhere.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output')
-rw-r--r-- | output/outelf.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/output/outelf.c b/output/outelf.c index 34c88361..123bf45e 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -1006,16 +1006,6 @@ static void elf64_out(int32_t segto, const void *data, int i; static struct symlininfo sinfo; - /* - * handle absolute-assembly (structure definitions) - */ - if (segto == NO_SEG) { - if (type != OUT_RESERVE) - nasm_error(ERR_NONFATAL, "attempt to assemble code in [ABSOLUTE]" - " space"); - return; - } - s = NULL; for (i = 0; i < nsects; i++) if (segto == sects[i]->index) { @@ -1296,16 +1286,6 @@ static void elfx32_out(int32_t segto, const void *data, int i; static struct symlininfo sinfo; - /* - * handle absolute-assembly (structure definitions) - */ - if (segto == NO_SEG) { - if (type != OUT_RESERVE) - nasm_error(ERR_NONFATAL, "attempt to assemble code in [ABSOLUTE]" - " space"); - return; - } - s = NULL; for (i = 0; i < nsects; i++) if (segto == sects[i]->index) { |