This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
question about alignment for debug sections
- From: Randolph Chung <randolph at tausq dot org>
- To: binutils at sources dot redhat dot com
- Date: Sun, 23 Feb 2003 10:43:02 -0800
- Subject: question about alignment for debug sections
- Reply-to: Randolph Chung <randolph at tausq dot org>
Hi,
I have a quick question about debug section alignment in an ELF object:
legolas[10:41] % readelf -S module.o |grep debug
[ 7] .debug_abbrev PROGBITS 00000000 0031d4 0003ac 00 0 0 1
[ 8] .debug_info PROGBITS 00000000 003580 0028fc 00 0 0 1
[ 9] .rela.debug_info RELA 00000000 009a6c 0021b4 0c 25 8 4
[10] .debug_line PROGBITS 00000000 005e7c 0004e4 00 0 0 1
[11] .rela.debug_line RELA 00000000 00bc20 00000c 0c 25 a 4
[18] .debug_pubnames PROGBITS 00000000 006988 00019d 00 0 0 1
[19] .rela.debug_pubna RELA 00000000 00c16c 00000c 0c 25 12 4
[20] .debug_aranges PROGBITS 00000000 006b25 000020 00 0 0 1
[21] .rela.debug_arang RELA 00000000 00c178 000018 0c 25 14 4
[22] .debug_str PROGBITS 00000000 006b45 00117c 01 MS 0 0 1
Why are the .debug_* sections not aligned to 4 bytes as well?
(this is on hppa-linux)
thanks
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/