Re: [PATCH v3] libgcc: rs6000: fix TOC restore when unwinding on FreeBSD powerpc64 ELFv2 [PR target/125803]
Piotr Kubaj <[email protected]>
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <anrDYosbs--R9sg3@talos-powerpc64le> |
Hi, if possible, yes, it would be preferable to backport this patch. On 26-08-11 11:30:08, Avinash Jayakar wrote: > Hi, > > In the bug it was mentioned that this issue is present on 14,15 and > 16. Does this need backports? > > Regards, > Avinash Jayakar > > On Wed, 2026-07-29 at 12:50 +0200, Gerald Pfeifer wrote: > > On Fri, 24 Jul 2026, Michael Meissner wrote: > > > > libgcc/ChangeLog: > > > > > > > > PR target/125803 > > > > * config/rs6000/freebsd-unwind.h (TOC_SAVE_SLOT): New > > > > macro, > > > > defined according to _CALL_ELF. > > > > (frob_update_context): Use TOC_SAVE_SLOT instead of the > > > > hard-coded ELFv1 offset 40 when checking for and > > > > locating the > > > > saved TOC, so that r2 is restored correctly under > > > > ELFv2. Guard > > > > the ELFv1-only PLT stub and function pointer call > > > > sequences > > > > with _CALL_ELF != 2, mirroring linux-unwind.h. > > > I approve this to be applied to the master branch and back ported > > > to > > > GCC 16 if it is needed. I assume you will fix any freebsd errors > > > that > > > come up to this patch if it is needed. > > > > Thank you for the review, Michael. > > > > Piotr, I pushed this to trunk for you. > > > > Gerald > >
signature.asc
(application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE----- iQJPBAABCAA5FiEEycyIeNkkgohzsoorelmbhSCDnJ0FAmp6w2IbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMCwyAAoJEHpZm4Ugg5ydvNYQAJxjOSM2i1rwBEFVDH2u tKXuqe/egycfowQylXJSRIb2gvGmY4l5/antfKcbAHuZYIn3d39anFFBXKw9YSVD SEJTIqteOubVfXyEgYo9lQGD/Gv1klBYu0jGiZHFOQmj/PiBVt9xXZYLDebdqNdR AfLC/M6DOlbnhA3YAoYZFyPB5uKn1SIW0YqoWpRF/lpvPNQpvv5CgrUu6K84Cu2o KVuMOrJhIcgmPhq7s3E8cT7RagIrikzBl/oW2HxU/iC6zwwYkKoCQ81eADh6TATb 6l8+H4Hxh81/Icp07vKiK9D/TehuY1lYdeu3hNZDy0YchvS1v5xkqcwSKRVQc1pZ 79we4af0XTWy/y2CZvOlG+wEypddFr0mgoOhIKlE2T3+GsJ5e0OfdItDuvrOUemu AxHsQnshl3r5l4vF2ERH82acUNh59SNJof60/GmArmDkEzw1brYjO5UlTR+p7ClX mfpiW1bPzbJka9liHMt1u031/Yue0x58D7iYXAd/MGnyyDhjsl/YaT+Wy24qOrLJ 7EGDH22pQkbHlyJV0let0KsSy4vDdW2k4DO0+UoyY2ndksIQCB05UNrZUMU8OM2n FMDVTWxMcM6dtvRKUfN67udPzVpe8NJQhgnP7MYb25nHTligH/YZDftFjdGk2m9u A9RCmvPl3Lxnz8SGdatTzWMM =BaGf -----END PGP SIGNATURE-----