summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-06-15 18:02:08 -0700
committerH. Peter Anvin <hpa@zytor.com>2018-06-15 18:02:08 -0700
commit8f3a62f154a55cd57262e9a9e802765735e5f631 (patch)
tree38bd10f619c26505dd081a3d92e56d4a8e53f8d6 /output
parenta9b596476b33eaf0afae51bb0de5d59f6c23505a (diff)
downloadnasm-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.c20
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) {