Re: How to lookup the unnamed string constant in the generated object or executable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 20, 2021 at 7:41 AM Peng Yu via Gcc-help
<gcc-help@xxxxxxxxxxx> wrote:
>
> Hi,
>
> I am trying to understand where are unnamed string constants are
> defined in symbol tables.
>
> In the following example, the unnamed string constant is "Hello World!".
>
> $ cat a.c
> #include <stdio.h>
> int main() { puts("Hello World!"); }
> $ gcc -c a.c
> $ gcc -o a.out a.o
>
> But I don't find it in the symbol table. Could anybody point to me
> where it is? Thanks.

It’s just a fixed offset after linking, so it does not need a symbol entry.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux