On Fri, 09 Mar 2018, John David Anglin wrote:
> Yes. Function pointers on hppa differ from all other architectures.
> I applied a patch to gcc-8 to fix the "0xdeadbeef" problem. It adds a
> check to ensure that the pointer points to read accessible memory. It
> also checks that the address in the descriptor is read accessible. Will
> backport to 7 and 6 when I get a chance.
Given your work on the compiler, does it really make sense to try to fix
something in cpputest?
The only clean fix I can think of is to modify the tests to use a real
function pointer instead of 0xdeadbeef. I don't think that an architecture
specific work-around or fix is desirable here.
Raphaël Hertzog ◈ Debian Developer
Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/