[PATCH] [macho] -rpath support

Jean-Daniel Dupas mailing at xenonium.com
Thu Dec 18 10:54:34 PST 2014


Hi kledzik,

Work on adding -rpath support to the mach-o linker.
This patch is based on the ld64 behavior for the command line option validation.

It includes a basic test to check that the LC_RPATH load commands are properly generated when that option is used.

It also add LC_RPATH support to the binary reader, but I don't know how to test it though.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6724

Files:
  include/lld/ReaderWriter/MachOLinkingContext.h
  lib/Driver/DarwinLdDriver.cpp
  lib/Driver/DarwinLdOptions.td
  lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  test/mach-o/rpath.yaml

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6724.17453.patch
Type: text/x-patch
Size: 7262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141218/8166bc18/attachment.bin>


More information about the llvm-commits mailing list