Re: Help generating LELTP0 with SPE

Segher Boessenkool <[email protected]>
Newsgroups gmane.comp.gcc.help
Message-ID <aRoyZSUdoA4Z0hHB@gate>
Hi!

On Sun, Nov 16, 2025 at 11:00:30AM -0800, Anirudh Mathukumilli wrote:
> On Sat, Nov 15, 2025 at 8:05 AM Segher Boessenkool <[1]
> [email protected]> wrote:
> You mentioned in your original response "the two labels are (wrongly)
> not in the same section," which to me implied that I should try modifying the
> backend to put the destructors in the same section,

That is one way you can fix the problem.  More obvious is computing the
address difference at runtime (with an actual sub or subf insn), or
doing this stuff a totally different way.

>     If those two labels are in different sections, the assembler will give
>     an error already.  So what emits this piece of assembler code?
> 
> 
> That was my question at the top of this thread: "Where precisely is this table
> generated? I know it has something to do with debug information, as removing
> the `-g` from compilation fixes my issue, but I can't quite figure out where
> this table is actually generated. " 
> 
> Apologies if this is a very obvious question; I haven't worked with GCC before
> and am still trying to understand how it all fits together.

Of course it is an obvious question, but it is not necessarily an
obvious answer (as usual!)  But it typically isn't very hard to find it
in the compiler code, not if you have example code at hand and can
instrument the compiler code.

I do not see it with just grepping, sorry.


Segher
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.