Page MenuHomeFreeBSD

xregs_via_sig: Add a work around for aarch64
Needs ReviewPublic

Authored by dchagin on Jun 1 2023, 8:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 10:39 PM
Unknown Object (File)
Thu, May 2, 10:39 PM
Unknown Object (File)
Thu, May 2, 9:05 PM
Unknown Object (File)
Sun, Apr 21, 12:44 PM
Unknown Object (File)
Feb 14 2024, 10:47 AM
Unknown Object (File)
Jan 1 2024, 2:34 AM
Unknown Object (File)
Dec 20 2023, 5:43 AM
Unknown Object (File)
Oct 29 2023, 3:49 AM
Subscribers

Details

Reviewers
kib
andrew
Summary

Due to lazy binding rtld can trash q16-q31 as they are caller saved.
Call my_pause() early in main to ensure any needed symbols has been
resolved.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51849
Build 48740: arc lint + arc unit

Event Timeline

Hm wouldn't it better to fix the issue instead?
Is it enough to build rtld with the right compiler options?

I suspect we might need to stop reusing str*.o from libc, building all object files anew for rtld.

In D40385#919415, @kib wrote:

Hm wouldn't it better to fix the issue instead?

+1

Is it enough to build rtld with the right compiler options?

I know only -mgeneral-regs-only, however it is not enough

I suspect we might need to stop reusing str*.o from libc, building all object files anew for rtld.

Could you please point me, I can't find it

Look at libexec/rtld-eld/rtld-libc/Makefile.inc