mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-01-13 07:20:02 +00:00
as/output.c: use section_init() to initialize the fake section0
This commit is contained in:
parent
8f2faeea93
commit
966059fbb6
@ -414,15 +414,8 @@ int output(struct tunit *tunit, const char *outfile)
|
||||
abort();
|
||||
if (output_padding(context.pdp10fp, ehdr.e_shoff - context.offset) < 0)
|
||||
return -1;
|
||||
section0.name = "<fake section 0>";
|
||||
section0.sh_name = 0;
|
||||
section0.sh_type = SHT_NULL;
|
||||
section0.sh_flags = 0;
|
||||
section0.sh_offset = 0;
|
||||
section0.dot = 0;
|
||||
section0.sh_link = 0;
|
||||
section_init(§ion0, "<fake section 0>");
|
||||
section0.sh_addralign = 0;
|
||||
section0.sh_entsize = 0;
|
||||
if (output_section_header(&context, §ion0) < 0)
|
||||
return -1;
|
||||
if (hashtab_enumerate(&tunit->sections, output_shdr, &context) < 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user