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>
This commit is contained in:
H. Peter Anvin 2018-06-15 18:02:08 -07:00
parent a9b596476b
commit 8f3a62f154

View File

@ -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) {