[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/22492] New: Incorrect note section alignment
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gas/22492] New: Incorrect note section alignment |
Date: |
Sat, 25 Nov 2017 13:55:46 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22492
Bug ID: 22492
Summary: Incorrect note section alignment
Product: binutils
Version: 2.30 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
address@hidden gas]$ cat /tmp/x.s
.version "Version 1.0"
address@hidden gas]$ gcc -c /tmp/x.s -m32
address@hidden gas]$ readelf -SW x.o
There are 8 section headers, starting at offset 0xd0:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf
Al
[ 0] NULL 00000000 000000 000000 00 0 0
0
[ 1] .text PROGBITS 00000000 000034 000000 00 AX 0 0
1
[ 2] .data PROGBITS 00000000 000034 000000 00 WA 0 0
1
[ 3] .bss NOBITS 00000000 000034 000000 00 WA 0 0
1
[ 4] .note NOTE 00000000 000034 000018 00 0 0
1
[ 5] .symtab SYMTAB 00000000 00004c 000050 10 6 5
4
[ 6] .strtab STRTAB 00000000 00009c 000001 00 0 0
1
[ 7] .shstrtab STRTAB 00000000 00009d 000032 00 0 0
1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
L (link order), O (extra OS processing required), G (group), T (TLS),
C (compressed), x (unknown), o (OS specific), E (exclude),
p (processor specific)
address@hidden gas]$
obj_elf_version pads note section to 4 byte alignment:
frag_align (2, 0, 0);
But it doesn't set section alignment to 4 bytes.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/22492] New: Incorrect note section alignment,
hjl.tools at gmail dot com <=
- [Bug gas/22492] Incorrect note section alignment, cvs-commit at gcc dot gnu.org, 2017/11/27
- [Bug gas/22492] Incorrect note section alignment, nickc at redhat dot com, 2017/11/27
- [Bug gas/22492] Incorrect note section alignment, hjl.tools at gmail dot com, 2017/11/27
- [Bug gas/22492] Incorrect note section alignment, nickc at redhat dot com, 2017/11/27
- [Bug gas/22492] Incorrect note section alignment, amodra at gmail dot com, 2017/11/28
- [Bug gas/22492] Incorrect note section alignment, cvs-commit at gcc dot gnu.org, 2017/11/29
- [Bug gas/22492] Incorrect note section alignment, nickc at redhat dot com, 2017/11/29