[llvm-bugs] [Bug 41707] New: llvm-ranlib does not support -D flag
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu May 2 03:35:09 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41707
Bug ID: 41707
Summary: llvm-ranlib does not support -D flag
Product: tools
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-ar
Assignee: unassignedbugs at nondot.org
Reporter: arichardson.kde at gmail.com
CC: llvm-bugs at lists.llvm.org
I have been trying to build FreeBSD (well CheriBSD actually) with llvm binutils
instead of elftoolchain utilities.
I noticed that building static archives was failing because ranlib is invoked
with the -D flag which is not supported by llvm-ranlib.
FreeBSD manpage:
-D When used in combination with the -r or -q option, with the -s
option without other options, or when invoked as ranlib, insert
0's instead of the real mtime, uid and gid values and 0644
instead of file mode from the members named by arguments file
.... This ensures that checksums on the resulting archives are
reproducible when member contents are identical. This option is
enabled by default. If multiple -D and -U options are specified
on the command line, the final one takes precedence.
GNU manpage:
-D Operate in deterministic mode. The symbol map archive member's
header will show zero for the UID, GID, and timestamp. When this option is
used, multiple runs will produce identical
output files.
If binutils was configured with --enable-deterministic-archives,
then this mode is on by default. It can be disabled with the -U option,
described below.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190502/b8631572/attachment.html>
More information about the llvm-bugs
mailing list