[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

efficient way to detect linker script files?



hi,

I'd like to discover all installed linker scripts, for the purposes of #823531
(check for broken linker scripts files). it's not clear to me that there's a
convention I could rely on to avoid brute forcing filetype detection of
everything under /lib/${DEB_HOST_GNU_TYPE} (that'd be /lib/x86_64-linux-gnu in
my system).

my intuition would be to only look in /lib/${DEB_HOST_GNU_TYPE}/ldscripts, and
ignore *.so named files, but a few linker scripts break both of those
assumptions:

	/lib/x86_64-linux-gnu/libc.so
	/lib/x86_64-linux-gnu/libm.a
	/lib/x86_64-linux-gnu/libusb.so

are these misplaced and misnamed? I didn't find any relevant guidance skimming
through policy.

thanks,
serafi

Attachment: signature.asc
Description: PGP signature


Reply to: