public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Who generate .rela.debug_info?
@ 2017-12-18 13:57 Nancy
  2017-12-18 14:12 ` Nathan Sidwell
  2017-12-18 18:50 ` Michael Matz
  0 siblings, 2 replies; 8+ messages in thread
From: Nancy @ 2017-12-18 13:57 UTC (permalink / raw)
  To: gcc

Dear list,

tls.c:
__thread int i=10;

$gcc -g -c -save-temps tls.c
$readelf -r tls.o
Relocation section '.rela.debug_info' at offset 0x2d0 contains 6 entries:
  Offset          Info           Type           Sym. Value    Sym. Name + Addend
000000000006  00070000000a R_X86_64_32       0000000000000000 .debug_abbrev + 0
00000000000c  000a0000000a R_X86_64_32       0000000000000000 .debug_str + 11
000000000011  000a0000000a R_X86_64_32       0000000000000000 .debug_str + 3f
000000000015  000a0000000a R_X86_64_32       0000000000000000 .debug_str + 0
000000000019  00090000000a R_X86_64_32       0000000000000000 .debug_line + 0
000000000028  000d00000015 R_X86_64_DTPOFF32 0000000000000000 i + 0

Relocation section '.rela.debug_aranges' at offset 0x360 contains 1 entries:
  Offset          Info           Type           Sym. Value    Sym. Name + Addend
000000000006  00060000000a R_X86_64_32       0000000000000000 .debug_info + 0

I can't find any code in cc1 or as that generate R_X86_64_DTPOFF32 in
.rela.debug_info section. Did I miss something?


-- 
Best Regards,
Yu Rong Tan

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

end of thread, other threads:[~2017-12-21 11:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-18 13:57 Who generate .rela.debug_info? Nancy
2017-12-18 14:12 ` Nathan Sidwell
2017-12-19 13:53   ` Nancy
2017-12-19 13:59     ` Andreas Schwab
2017-12-19 14:03     ` Nathan Sidwell
2017-12-21 11:27       ` Nancy
2017-12-18 18:50 ` Michael Matz
2017-12-19 14:01   ` Nancy

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).