Mis-aligned debugging symbols

William Tambe tambewilliam@gmail.com
Sun Mar 8 23:21:35 GMT 2020


On Sat, Mar 7, 2020 at 9:39 AM William Tambe <tambewilliam@gmail.com> wrote:
>
> In our custom port, GCC generate debugging symbols that are mis-aligned.

To further clarify on the issue we are having, below is an excerpt
from the output of readelf showing mis-aligned debugging symbols:

Relocation section '.rela.debug_line' at offset 0x1fec contains 19 entries:
 Offset     Info    Type            Sym.Value  Sym. Name + Addend
000000f7  00000603 R_ARCH_32         00000000   .text.startup + 0
00000101  00000603 R_ARCH_32         00000000   .text.startup + 18
0000010b  00000603 R_ARCH_32         00000000   .text.startup + 30
00000115  00000603 R_ARCH_32         00000000   .text.startup + 64

Any idea how to make GCC generate debugging symbols that are properly aligned ?

>
> How to make GCC generate debugging symbols that are properly aligned ?



More information about the Gcc-help mailing list