[llvm-bugs] [Bug 46112] RISC-V binary does not respect page alignment

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 1 23:29:45 PDT 2020


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

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |i at maskray.me
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Fangrui Song <i at maskray.me> ---
This works as intended (-z noseparate-code is the default in LLD).
This can avoid unneeded page alignments to make the output small.

Please read https://reviews.llvm.org/D64906 for more information.

Consider using:

-z separate-code 
-z separate-loadable-segments (https://reviews.llvm.org/D67481)

> This result won't change if we use --no-nmagic which I suppose should fix the problem.

--nmagic is a special mode. --no-nmagic is the default. There is no need to
specify it.

-- 
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/20200602/39ee8429/attachment.html>


More information about the llvm-bugs mailing list