File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 15
15
# WHITESPACE-NEXT: {{^}} 2 .data 00000000 0000000000000000 0000000000000000 DATA{{$}}
16
16
# WHITESPACE-NEXT: {{^}} 3 .bss 00000000 0000000000000000 0000000000000000 BSS{{$}}
17
17
# WHITESPACE-NEXT: {{^}} 4 .other 00000000 0000000000000000 0000000000000000 {{$}}
18
+ # WHITESPACE-NEXT: {{^}} 5 .debug_abbrev 00000000 0000000000000000 0000000000000000 DEBUG{{$}}
19
+ # WHITESPACE-NEXT: {{^}} 6 .debug_info 00000000 0000000000000000 0000000000000000 DATA, DEBUG{{$}}
18
20
19
21
# WHITESPACE-NO-LMA: {{^}}Sections:{{$}}
20
22
# WHITESPACE-NO-LMA-NEXT: {{^}}Idx Name Size VMA Type{{$}}
23
25
# WHITESPACE-NO-LMA-NEXT: {{^}} 2 .data 00000000 0000000000000000 DATA{{$}}
24
26
# WHITESPACE-NO-LMA-NEXT: {{^}} 3 .bss 00000000 0000000000000000 BSS{{$}}
25
27
# WHITESPACE-NO-LMA-NEXT: {{^}} 4 .other 00000000 0000000000000000 {{$}}
28
+ # WHITESPACE-NO-LMA-NEXT: {{^}} 5 .debug_abbrev 00000000 0000000000000000 DEBUG{{$}}
29
+ # WHITESPACE-NO-LMA-NEXT: {{^}} 6 .debug_info 00000000 0000000000000000 DATA, DEBUG{{$}}
26
30
27
31
--- !ELF
28
32
FileHeader:
@@ -42,6 +46,11 @@ Sections:
42
46
Flags: [SHF_ALLOC, SHF_WRITE]
43
47
- Name: .other
44
48
Type: SHT_REL
49
+ - Name: .debug_abbrev
50
+ Type: SHT_PROGBITS
51
+ - Name: .debug_info
52
+ Type: SHT_PROGBITS
53
+ Flags: [ SHF_WRITE, SHF_ALLOC ]
45
54
46
55
## The name field automatically expands past the default 13 columns when a
47
56
## section name is longer than that.
Original file line number Diff line number Diff line change @@ -1764,9 +1764,11 @@ void objdump::printSectionHeaders(const ObjectFile *Obj) {
1764
1764
1765
1765
std::string Type = Section.isText () ? " TEXT" : " " ;
1766
1766
if (Section.isData ())
1767
- Type += Type.empty () ? " DATA" : " DATA" ;
1767
+ Type += Type.empty () ? " DATA" : " , DATA" ;
1768
1768
if (Section.isBSS ())
1769
- Type += Type.empty () ? " BSS" : " BSS" ;
1769
+ Type += Type.empty () ? " BSS" : " , BSS" ;
1770
+ if (Section.isDebugSection ())
1771
+ Type += Type.empty () ? " DEBUG" : " , DEBUG" ;
1770
1772
1771
1773
if (HasLMAColumn)
1772
1774
outs () << format (" %3" PRIu64 " %-*s %08" PRIx64 " " , Idx, NameWidth,
You can’t perform that action at this time.
0 commit comments