[PATCH] [lld][ELF] Ability to resolve undefined symbols lazily

Denis Protivensky dprotivensky at accesssoftek.com
Mon Mar 9 02:34:27 PDT 2015


Hi ruiu, shankar.easwaran, Bigcheese,

Some symbols like _GLOBAL_OFFSET_TABLE_ may occur in linked object files when not usually expected (for example, glibc uses them for STT_GNU_IFUNC optimization). The patch lets writers override specific method and handle such kind of lazy resolution if needed.
Added implementation of handling _GLOBAL_OFFSET_TABLE_ symbol for ARM platform.

http://reviews.llvm.org/D8159

Files:
  include/lld/Core/LinkingContext.h
  include/lld/Core/Simple.h
  include/lld/ReaderWriter/ELFLinkingContext.h
  include/lld/ReaderWriter/MachOLinkingContext.h
  lib/Driver/Driver.cpp
  lib/ReaderWriter/ELF/ARM/ARMExecutableWriter.h
  lib/ReaderWriter/ELF/ELFLinkingContext.cpp
  lib/ReaderWriter/ELF/OutputELFWriter.h
  lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h
  test/elf/ARM/got-symbol.test
  test/elf/ARM/missing-symbol.test

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8159.21470.patch
Type: text/x-patch
Size: 18733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150309/fb290ff8/attachment.bin>


More information about the llvm-commits mailing list