[PATCH][AArch64] Add more cfi annotations to tlsdesc entry points

Szabolcs Nagy szabolcs.nagy@arm.com
Fri Dec 9 13:23:00 GMT 2016


Backtrace through _dl_tlsdesc_resolve_rela was broken because the offset
of x30 from cfa was not in the debug info.

Add enough annotation so backtracing from the dynamic linker through
tlsdesc entry points works and the debugger shows registers correctly.

(manually tested with gdb.)

2016-12-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add cfi
	annotation.
	(_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tlscfi.diff
Type: text/x-patch
Size: 4705 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20161209/ba71dee2/attachment.bin>


More information about the Libc-alpha mailing list