[llvm-bugs] [Bug 36853] New: Executable are not filled with traps

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 21 09:15:17 PDT 2018


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

            Bug ID: 36853
           Summary: Executable are not filled with traps
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael at espindo.la
                CC: anng.sw at gmail.com, llvm-bugs at lists.llvm.org,
                    rafael at espindo.la

Given

        nop

        .section .foo,"ax"
        .align 16
        nop

We produce

90 cc cc cc cc cc cc cc  cc cc cc cc cc cc cc cc

When 90 is the nop in .text and cc are the traps.

But if we add ".zero 0x1000" to the end of the file, lld will produce

90 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

-- 
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/20180321/dbc66210/attachment.html>


More information about the llvm-bugs mailing list