[llvm-bugs] [Bug 34162] New: yaml2obj cannot handle multiple sections with the same name

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 11 12:47:05 PDT 2017


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

            Bug ID: 34162
           Summary: yaml2obj cannot handle multiple sections with the same
                    name
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: bigcheesegs at gmail.com, llvm-bugs at lists.llvm.org

The simple asm file

        .section        .text.foo,"axG", at progbits,_Z3fooIiEvv,comdat
        nop
        .section        .text.foo,"axG", at progbits,_Z3barIiEvv,comdat
        nop

produce two sections named .group. If we try to pass the output of obj2yaml to
yaml2obj we get

error: Repeated section name: '.group' at YAML section number 3.

It needs to rename sections or refer to sections using an ID instead of the
name.

-- 
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/20170811/f2955baa/attachment.html>


More information about the llvm-bugs mailing list