mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
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:
parent
a9b596476b
commit
8f3a62f154
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user