[llvm-bugs] [Bug 26975] New: lld -r sets sh_entsize to 0 for SHF_MERGE sections

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 17 08:46:27 PDT 2016


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

            Bug ID: 26975
           Summary: lld -r sets sh_entsize to 0 for SHF_MERGE sections
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16048
  --> https://llvm.org/bugs/attachment.cgi?id=16048&action=edit
relocatable SHF_MERGE test case

The attached test case demonstrates the issue -- lld -r produces output with
sh_entsize 0 for input with a SHF_MERGE SHF_STRINGS section with sh_entsize 1. 

  Section {
    Index: 1
    Name: .rodata (1) <<<<
    Type: SHT_PROGBITS (0x1)
    Flags [ (0x32)
      SHF_ALLOC (0x2)
      SHF_MERGE (0x10)
      SHF_STRINGS (0x20)
    ]
    Address: 0x0
    Offset: 0x34
    Size: 4
    Link: 0
    Info: 0
    AddressAlignment: 1
    EntrySize: 0 <<<<
    SectionData (
      0000: 61626300                             |abc.|
    )
  }

-- 
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/20160317/009c19dd/attachment-0001.html>


More information about the llvm-bugs mailing list