FreeBSD does not process AT_SUN_EXECNAME at all. But I think you are right, might as well use the full path for the name. The Dl_info will be different as returned from dladdr(3), the linkmap entry as returned by dlinfo(3), and the error messages from the linker itself. It will look non-familiar to the user (why I typed ./foo and the error message is /path/foo?), but I think it is better (since it provides an absolute path) and should not break anything. christos
Attachment:
objmain_name.diff
Description: Binary data
Attachment:
signature.asc
Description: Message signed with OpenPGP