You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the code for function 'calc_kaslr_offset' just return FALSE, thus the kimage_voffset of qemu dumped core file could not obtained. Which leads to the failure of parsing the qemu dumped core file on the Arm platform.
So, I am wandering if there is any plan to add support for that?
much thanks.
PS: function 'calc_kaslr_offset' on Arm platform:
int
calc_kaslr_offset(ulong *kaslr_offset, ulong *phys_page)
{
return FALSE;
}
The text was updated successfully, but these errors were encountered:
The crash-utility has its own strlcpy(), but recently the latest glibc
has also implemented the strlcpy function, which is derived from
OpenBSD. Eventually this caused the following compilation error:
# make -j8 lzo
...
In file included from global_data.c:18:
defs.h:5556:8: error: conflicting types for ‘strlcpy’; have ‘size_t(char *, char *, size_t)’ {aka ‘long unsigned int(char *, char *, long unsigned int)’}
5556 | size_t strlcpy(char *, char *, size_t);
| ^~~~~~~
In file included from memory.c:19:
defs.h:5556:8: error: conflicting types for ‘strlcpy’; have ‘size_t(char *, char *, size_t)’ {aka ‘long unsigned int(char *, char *, long unsigned int)’}
5556 | size_t strlcpy(char *, char *, size_t);
| ^~~~~~~
...
To fix the issue, let's declare the strlcpy() as a weak function and
keep the same parameter types as the glibc function has.
Related glibc commits:
454a20c8756c ("Implement strlcpy and strlcat [BZ crash-utility#178]")
d2fda60e7c40 ("manual: Manual update for strlcat, strlcpy, wcslcat, wclscpy")
388ae538ddcb ("hurd: Add strlcpy, strlcat, wcslcpy, wcslcat to libc.abilist")
Signed-off-by: Lianbo Jiang <[email protected]>
Hello,
Currently, the code for function 'calc_kaslr_offset' just return FALSE, thus the kimage_voffset of qemu dumped core file could not obtained. Which leads to the failure of parsing the qemu dumped core file on the Arm platform.
So, I am wandering if there is any plan to add support for that?
much thanks.
PS: function 'calc_kaslr_offset' on Arm platform:
int
calc_kaslr_offset(ulong *kaslr_offset, ulong *phys_page)
{
return FALSE;
}
The text was updated successfully, but these errors were encountered: