[PATCH] D92537: [lld-macho] Implement -object_path_lto

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 2 20:47:16 PST 2020


int3 created this revision.
int3 added reviewers: lld-macho, clayborg.
Herald added subscribers: llvm-commits, dang, steven_wu, hiraditya, inglorion.
Herald added a project: LLVM.
int3 requested review of this revision.
Herald added a subscriber: ormris.

This makes it possible for STABS entries to reference the debug info
contained in the LTO-compiled output.

ld64 emits an N_OSO reflecting the modtime of the newly created object
file. Instead of copying this behavior, I thought it would be nicer to
zero out the modtime of the object file -- that way the output binary
remains reproducible.

I'm not sure how to test the file mtime within llvm-lit -- GNU and BSD
`stat` take different command-line arguments. I've omitted the check for
now.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92537

Files:
  lld/MachO/Config.h
  lld/MachO/Driver.cpp
  lld/MachO/LTO.cpp
  lld/MachO/Options.td
  lld/test/MachO/lto-object-path.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92537.309136.patch
Type: text/x-patch
Size: 4711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201203/fb84c291/attachment.bin>


More information about the llvm-commits mailing list