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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to