Date: Mon, 11 Sep 2017 13:55:13 -0700 From: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com> To: Mariusz Zaborski <oshogbo@FreeBSD.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Bypassing libcasper (for fun and profit)...? Message-ID: <EC7A9660-6BCE-42F3-9F3A-B7E39414767F@gmail.com>
next in thread | raw e-mail | index | archive | help
--Apple-Mail=_C0E698D5-14FF-4B4F-938B-4040A30ECD1A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Mariusz, I=E2=80=99m trying to get runtime coverage to work on = ^/projects/runtime-coverage . I noticed that libcasper is unfortunately = getting in the way of writing .gcda files via install(1) (libgcov and = libprofile_rt hijack binaries and libraries to write out profiling = information at runtime, which doesn=E2=80=99t seem to jive with = libcasper). I assume install(1) won=E2=80=99t be the only program to = have this issue, so a generic solution should probably be implemented. I was wondering if there=E2=80=99s a way that you would like to = design a formalized hook to bypass this, was wondering if you think = conditionally compiling out the functions (as stubs) was the proper way = to do it (security vs flexibility), have the the library implement weak = symbols and override with another library using strong symbols as a = bypass, or use a combination of LD_PRELOAD and hooks to disable = libcasper/turn the calls into warnings (instead of fatal errors). Thanks! -Ngie --Apple-Mail=_C0E698D5-14FF-4B4F-938B-4040A30ECD1A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJZtvgxAAoJEPWDqSZpMIYV9YEP/iY3RvHkhJckFLICHTNPcuON 2wR2oeptw7IeqKbJI2TZEb/nIVgfQQ4oU9Rhum88L6SC2bWRzSVgYZAyyH5Vrc0T 40s6M5MXS4jiByH22S1kldbQPCjzbhH4kpyAzLT2su0tgGITItQyUANMC76AI/aP KafsNJ0rFmxR8LyCZBE8EicoaZsFuXKCfFiICYbBZbT5Nskdbc8oeAjnQdfwYLcL cKlF7OKMNAExoMF0zgPHe1d2yZg03NDKI5i11zEEi/Kxq8zTiXBNSQZIsC6UwPnZ dklia0AwZuYZdry9HbTwm7ztvrCnK1GNPoc4PKwHYqV92nMd+OXfSC6Y7VwjnKqt jkSEtY8yFykvviRVOHzEtURQeckWQTkp0Xy4k74N0lDefiGA7yBAsFgqzjjja0Mn hxaxkuuSHXoWXLf7f/gF0CEoJuvzuV2ttV3kV+mbWj2F1iAAlU4iDEx0KOgr1ce9 L1ZQaa4EG39hYb3RfVcdeSB7uwm1SlLGNoIximtYCFcwgDbI9b5cn1bbFI9DbwDj 3JMLK1m7ZCjBZeTyYaKXNCpQKQJJDmSZOltK26K2VyunSQcsKmY5spuIvBjjP3i7 WYBfROjGu6BcsXfYe8zNjT2Du77DhrqbFRg5FqH6v6PNoHcglFO69PfHRh7V+A2c XNz5QBzuVqJojBZgEMvf =ytg7 -----END PGP SIGNATURE----- --Apple-Mail=_C0E698D5-14FF-4B4F-938B-4040A30ECD1A--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EC7A9660-6BCE-42F3-9F3A-B7E39414767F>