https://sourceware.org/bugzilla/show_bug.cgi?id=18451
Bug ID: 18451
Summary: Inefficient .strtab implementation
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
[hjl@gnu-tools-1 strtab-1]$ cat x.S
#define GLOBAL(x) .globl x; x
.text
GLOBAL(x):
GLOBAL(xx):
GLOBAL(xxx):
GLOBAL(xxxx):
GLOBAL(xxxxx):
GLOBAL(xxxxxx):
mov %eax,%edx
[hjl@gnu-tools-1 strtab-1]$ gcc -c x.S
[hjl@gnu-tools-1 strtab-1]$ readelf -x 6 x.o
Hex dump of section '.strtab':
0x00000000 00780078 78007878 78007878 78780078 .x.xx.xxx.xxxx.x
0x00000010 78787878 00787878 78787800 xxxx.xxxxxx.
[hjl@gnu-tools-1 strtab-1]$
They can share a single "xxxxxx" entry.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils