[llvm-bugs] [Bug 42388] "Not enough space" when linking with whole-archive

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 28 02:50:05 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42388

Rui Ueyama <ruiu at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #7 from Rui Ueyama <ruiu at google.com> ---
What Martin wrote is correct. We are using mmap IO, so the sum of all input
files must be smaller than the address space, and this limitation is very
unlikely to be "fixed", as it is somewhat a fundamental design choice.

That said, I think there's a workaround you may want to try. Please try
creating archive files as thin archives. Since thin archives don't contain
actual object files but just a symbol table and pathnames to object files,
address space consumed by thin archives is very small. If the total amount of
address space consumed by real object files does not exceed the address space,
your link may succeed.

-- 
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/20190628/a4988127/attachment.html>


More information about the llvm-bugs mailing list