Hi Daniel, On Mon, Jul 31, 2023 at 12:21 PM <daniel@xxxxxxxxxxx> wrote: > I would like to modify the relaxation behavior of Xtensa assembly. > Furthermore, I only want to modify the last relaxation of a call8 > instruction. > > So my question is: how do I know which is the last relaxation in a > function? Could you elaborate a bit on the "last" part. Last in what sense? > I already know that one of the last relaxations is done in > convert_frag_immed() in tc-xtensa.c. Can I somehow tell from the segment > pointer or fragment pointer if I'm at the end of a function? I don't think so. On the other hand windowed functions always begin with the entry instruction and end with either retw or retw.n instruction. -- Thanks. -- Max