Bug#895574: lintian: binary-compiled-with-profiling-enabled test fails on Ubuntu's armhf
[Replying to steve@eilval.com!]
Hey Sledge,
>>I suspect the underlying problem is that we are not detecting
>>profiling information on armhf correctly. The relevant code is:
>>
>> https://salsa.debian.org/lintian/lintian/blob/master/checks/binaries.pm#L192-207
>>
>>I have attached the "readelf -WltdVs" output of "basic.c" compiled
>>on the harris.debian.org porterbox.
>>
>>Whilst I see a "GLIBC_" section, I do see an mcount:
>>
>> 117: 00000000 0 FUNC GLOBAL DEFAULT UND __gnu_mcount_nc@@GLIBC_2.8
>>
>>Can someone with some ELF knowledge chime in here? :)
>
>I can have a look. So we're looking at the same thing, what's in "basic.c"?
Ooh, thanks! So this is basic.c:
#include <stdio.h>
#include <string.h>
int
main(int argc, char *argv[])
{
char t[10];
printf("Hello world!\n");
/* forces a stack protector */
(void) strcpy(t,argv[0]);
return (int) t[0];
}
Or, canonically:
https://salsa.debian.org/lintian/lintian/blob/master/t/tests/binaries-general/debian/basic.c
Some of the C code might be to trigger other things, so I can't
vouch for it being a minimal testcase here alas.
Best wishes,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Reply to: