[PATCH] D30724: Dont emit Mapping symbols for Non allocatable sections.
Shankar Easwaran via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 8 05:15:19 PST 2017
shankare added a comment.
It looks like gcc doesnot purely go by whether section has data or not. It also checks for section permissions.
For example :-
$ cat b.s
.section .foobar,"ax",%progbits
.word 32
$ readelf -s b.o
Symbol table '.symtab' contains 7 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 SECTION LOCAL DEFAULT 1
2: 00000000 0 SECTION LOCAL DEFAULT 2
3: 00000000 0 SECTION LOCAL DEFAULT 3
4: 00000000 0 SECTION LOCAL DEFAULT 4
5: 00000000 0 NOTYPE LOCAL DEFAULT 4 $d
6: 00000000 0 SECTION LOCAL DEFAULT 5
Thanks for the review.
Repository:
rL LLVM
https://reviews.llvm.org/D30724
More information about the llvm-commits
mailing list