This is the mail archive of the mailing list for the elfutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libelf/21315] multiple misaligned address errors for Elf64_Shdr

--- Comment #2 from Agostino Sarubbo <ago at gentoo dot org> ---
(In reply to Mark Wielaard from comment #1)
> Note that in some cases elfutils deliberately does unaligned accesses if it
> believes it is safe. See the following in lib/eu-config.h:
> /* Define ALLOW_UNALIGNED if the architecture allows operations on
>    unaligned memory locations.  */
> #if (defined __i386__ || defined __x86_64__) && ! CHECK_UNDEFINED
> # define ALLOW_UNALIGNED        1
> #else
> # define ALLOW_UNALIGNED        0
> #endif
> Note that it is to not allow unaligned accesses when configuring with
> --enable-sanitize-undefined (which adds -fsanitize=undefined
> -fno-sanitize-recover to CFLAGS and CXXFLAGS).
> Are you configuring using --enable-sanitize-undefined? Or adding
> -fsanitize=undefined by hand? In the later case you should also add

It was added by hand..I need to test if I obtain those warning with

You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]