You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At least since 0.11.0, Zig has an objcopy subcommand, which would eliminate the need for LLVM's llvm-objcopy.
$ zig --help|grep objcopy
objcopy Use Zig as a drop-in objcopy
$ zig objcopy --help
Usage: zig objcopy [options] input output
Options:
-h, --help Print this help and exit
--output-target=<value> Format of the output file
-O <value> Alias for --output-target
--only-section=<section> Remove all but <section>
-j <value> Alias for --only-section
--pad-to <addr> Pad the last section up to address <addr>
--strip-debug, -g Remove all debug sections from the output.
--strip-all, -S Remove all debug sections and symbol table from the output.
--only-keep-debug Strip a file, removing contents of any sections that would not be stripped by --strip-debug and leaving the debugging sections intact.
--add-gnu-debuglink=<file> Creates a .gnu_debuglink section which contains a reference to <file> and adds it to the output file.
--extract-to <file> Extract the removed sections into <file>, and add a .gnu-debuglink section.
--compress-debug-sections Compress DWARF debug sections with zlib
Not sure if it has all the functionality that NativeAOT needs, though.
The text was updated successfully, but these errors were encountered:
At least since 0.11.0, Zig has an
objcopy
subcommand, which would eliminate the need for LLVM'sllvm-objcopy
.Not sure if it has all the functionality that NativeAOT needs, though.
The text was updated successfully, but these errors were encountered: