diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2017-12-20 13:33:49 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2017-12-20 13:38:20 -0800 |
commit | 81b62b9f54ac8e4019a9b2ec2b95ec0faa86bd2a (patch) | |
tree | 5339576fc296a92504dbc5a07a8a97c2de4896ab /output/outmacho.c | |
parent | dcbaf677d4b5118d427a3a3b45a3499e22fa8635 (diff) | |
download | nasm-81b62b9f54ac8e4019a9b2ec2b95ec0faa86bd2a.tar.gz |
Eliminate filename length restrictions, remote ofmt->filename()
Get rid of remaining dependencies on FILENAME_MAX, which ought to have
been removed a long time ago.
Remove ofmt->filename(); all implementations pretty much do the same
thing and there is absolutely no reason to duplicate that
functionality all over the place.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'output/outmacho.c')
-rw-r--r-- | output/outmacho.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/output/outmacho.c b/output/outmacho.c index 4aefe3f3..742c2948 100644 --- a/output/outmacho.c +++ b/output/outmacho.c @@ -1106,12 +1106,6 @@ static int32_t macho_segbase(int32_t section) return section; } -static void macho_filename(char *inname, char *outname) -{ - standard_extension(inname, outname, ".o"); - module_name = inname; -} - extern macros_t macho_stdmac[]; /* Comparison function for qsort symbol layout. */ @@ -2293,6 +2287,7 @@ static const struct dfmt * const macho32_df_arr[2] = const struct ofmt of_macho32 = { "NeXTstep/OpenStep/Rhapsody/Darwin/MacOS X (i386) object files", "macho32", + ".o", 0, 32, macho32_df_arr, @@ -2306,7 +2301,6 @@ const struct ofmt of_macho32 = { macho_sectalign, macho_segbase, null_directive, - macho_filename, macho_cleanup, macho_pragma_list }; @@ -2358,6 +2352,7 @@ static const struct dfmt * const macho64_df_arr[2] = const struct ofmt of_macho64 = { "NeXTstep/OpenStep/Rhapsody/Darwin/MacOS X (x86_64) object files", "macho64", + ".o", 0, 64, macho64_df_arr, @@ -2371,7 +2366,6 @@ const struct ofmt of_macho64 = { macho_sectalign, macho_segbase, null_directive, - macho_filename, macho_cleanup, macho_pragma_list, }; |