[llvm-bugs] [Bug 35718] New: [llvm-mc] - llvm-mc does not handle .debug_types correctly

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 21 09:24:52 PST 2017


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

            Bug ID: 35718
           Summary: [llvm-mc] - llvm-mc does not handle .debug_types
                    correctly
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: grimar at accesssoftek.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19584
  --> https://bugs.llvm.org/attachment.cgi?id=19584&action=edit
text file with source

Something wrong with how llvm-mc handles debug_types it seems.
Attached source file, compiled with
GNU assembler version 2.29.51 (x86_64-pc-linux-gnu)
using BFD version (GNU Binutils) 2.29.51.20171006
contains:

COMDAT group section [    1] `.group' [aaa] contains 1 sections:
   [Index]    Name
   [    8]   .aaa

COMDAT group section [    2] `.group' [bbb] contains 1 sections:
   [Index]    Name
   [    9]   .bbb

COMDAT group section [    3] `.group' [ccc] contains 1 sections:
   [Index]    Name
   [   10]   .ccc

COMDAT group section [    4] `.group' [5657452045627120676] contains 2
sections:
   [Index]    Name
   [   11]   .debug_types
   [   12]   .rela.debug_types

llvm-mc (r321060) output for the same is:

COMDAT group section [    3] `.group' [aaa] contains 1 sections:
   [Index]    Name
   [    4]   .aaa

COMDAT group section [    5] `.group' [bbb] contains 1 sections:
   [Index]    Name
   [    6]   .bbb

COMDAT group section [    7] `.group' [ccc] contains 2 sections:
   [Index]    Name
   [    8]   .ccc
   [    9]   .rela.ccc

Looks it treats .rela.debug_types as .rela.ccc

When I remove sections .aaa, .bbb, .ccc from code, then gas output is:

COMDAT group section [    1] `.group' [5657452045627120676] contains 2
sections:
   [Index]    Name
   [    5]   .debug_types
   [    6]   .rela.debug_types

And llvm-mc emits no groups at all:

There are no section groups in this file.

-- 
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/20171221/f170aa10/attachment-0001.html>


More information about the llvm-bugs mailing list