[PATCH] Write references to Native format in NativeReferenceIvarsV2.

Rui Ueyama ruiu at google.com
Mon Nov 18 09:55:10 PST 2013


Hi kledzik, Bigcheese, shankarke,

NativeReferenceIvarsV1 cannot handle more than 65535 relocation targets
because the type of targetIndex is uint16_t. Because reasonable size of
executable can easily have more than 65535 relocation targets, the format is
far from being practical. The existence of RoundTripNativePass worsen the
sitatuion -- all linking results go through the pass to get converted to
Native and read it back. That means the LLD cannot link program having many
relocations even if you do not explicitly use Native format. I believe we
cannot self-host the LLD on Unix anymore because of the issue.

Need to migrate to V2.

http://llvm-reviews.chandlerc.com/D2217

Files:
  lib/ReaderWriter/Native/NativeFileFormat.h
  lib/ReaderWriter/Native/ReaderNative.cpp
  lib/ReaderWriter/Native/WriterNative.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2217.1.patch
Type: text/x-patch
Size: 16797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131118/36555a95/attachment.bin>


More information about the llvm-commits mailing list