public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Mis-aligned debugging symbols
@ 2020-03-07 14:39 William Tambe
  2020-03-08 23:21 ` William Tambe
  0 siblings, 1 reply; 3+ messages in thread
From: William Tambe @ 2020-03-07 14:39 UTC (permalink / raw)
  To: gcc-help

In our custom port, GCC generate debugging symbols that are mis-aligned.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Mis-aligned debugging symbols
  2020-03-07 14:39 Mis-aligned debugging symbols William Tambe
@ 2020-03-08 23:21 ` William Tambe
  2020-03-09 21:53   ` Jim Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: William Tambe @ 2020-03-08 23:21 UTC (permalink / raw)
  To: gcc-help

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 ?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Mis-aligned debugging symbols
  2020-03-08 23:21 ` William Tambe
@ 2020-03-09 21:53   ` Jim Wilson
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Wilson @ 2020-03-09 21:53 UTC (permalink / raw)
  To: William Tambe; +Cc: gcc-help

On Sun, Mar 8, 2020 at 4:21 PM William Tambe <tambewilliam@gmail.com> wrote:
> 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

This is unaligned by design, to help reduce the size of the debug
info.  Debug info isn't performance critical, so dealing with
unaligned data is not a problem here.  To fix it, you would have to
use a different debug info format, but there isn't one we support as
well as dwarf2.

Jim

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-09 21:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-07 14:39 Mis-aligned debugging symbols William Tambe
2020-03-08 23:21 ` William Tambe
2020-03-09 21:53   ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).