diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2018-06-14 22:41:00 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2018-06-14 22:41:00 -0700 |
commit | 0125c446ddba6ce02cc5654bdcfcfa41e46b8223 (patch) | |
tree | 11927687071c491b8a34d821180b77b9cb157849 /output/outdbg.c | |
parent | e803010163851d51a9411b30ffb8e54a47971604 (diff) | |
download | nasm-0125c446ddba6ce02cc5654bdcfcfa41e46b8223.tar.gz |
output: centralize the null definition of ofmt->segbase
Only two output formats (obj and ieee) actually need ofmt->segbase, so
move the common dummy definion into nullout.c.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'output/outdbg.c')
-rw-r--r-- | output/outdbg.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/output/outdbg.c b/output/outdbg.c index 84cccf73..70f8e375 100644 --- a/output/outdbg.c +++ b/output/outdbg.c @@ -318,11 +318,6 @@ static void dbg_sectalign(int32_t seg, unsigned int value) seg, value); } -static int32_t dbg_segbase(int32_t segment) -{ - return segment; -} - static enum directive_result dbg_directive(enum directive directive, char *value, int pass) { @@ -480,7 +475,7 @@ const struct ofmt of_dbg = { dbg_section_names, dbg_herelabel, dbg_sectalign, - dbg_segbase, + null_segbase, dbg_directive, dbg_cleanup, dbg_pragma_list |