From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80518 invoked by alias); 18 Dec 2017 13:57:36 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 80501 invoked by uid 89); 18 Dec 2017 13:57:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1009, dear, Best X-HELO: mail-pg0-f44.google.com Received: from mail-pg0-f44.google.com (HELO mail-pg0-f44.google.com) (74.125.83.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Dec 2017 13:57:35 +0000 Received: by mail-pg0-f44.google.com with SMTP id j4so9190647pgp.1 for ; Mon, 18 Dec 2017 05:57:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=IhT/KBRteaU0rGHilD/mV9XgmNdf8IdYdT03Vwoxr4s=; b=mQSim5ty4V0p2tVV46P5nhg0chRvKy4Kek5+okq9SSyajsHHaeuh6rfhDeDh0Yy9os j7hZ+JGpUTuKI43VymfIQAKqdFhhMxipsB5zrV92pS30W8ioMIUUvSx6GcdTBcuZ8VBi FZonEHzSnPlhrX2tvJGiu0wUScVeDqvRWqvEfJ5Xxx3FAazvrxJ3hMpWD5Ul6YbezWHc HOOP1UsFgRkaF2hZ+MpQn+oKaehkuyQ7rs0nWXV/fSIDFJlCO+I8hFPfB7OmgNhLQ3X/ aKd1eNJmtIWaWe0Xir3qQ8aBcBVNuLaPZaitDsF4nFGXNelgvyTjdj1dQdpHkEBqJvQu LKZA== X-Gm-Message-State: AKGB3mIou0hCtTW/eP4PlcypNDgm2B1u+a6X96Zxl8B1+s83MnIKif3b 2M1xNR1tucJwrNVzYF6xlknvfvDK2AN3I7r8y6vKpA== X-Google-Smtp-Source: ACJfBovnwo16ndG6XIEy0F86f2rmeGYYfhgROz849mcWxxG1kPA2j1h6Bm/Te5hVJcTTh94uLV5eKZ3AohkYSvxuJNU= X-Received: by 10.99.159.2 with SMTP id g2mr19956208pge.240.1513605452862; Mon, 18 Dec 2017 05:57:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.161.164 with HTTP; Mon, 18 Dec 2017 05:57:32 -0800 (PST) From: Nancy Date: Mon, 18 Dec 2017 13:57:00 -0000 Message-ID: Subject: Who generate .rela.debug_info? To: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00105.txt.bz2 Dear list=EF=BC=8C tls.c: __thread int i=3D10; $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 + A= ddend 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 + A= ddend 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? --=20 Best Regards, Yu Rong Tan