Re: Building on Gentoo/creating a DT_TEXTREL in shared object
Andy Ross
I'm guessing that these
relocations are there everywhere and that yours just happens to be
a binutils recent enough to warn about it. Have you tried just
removing the "-Wl,--fatal-warnings" bit from sanitycheck
manually? I bet the test would succeed.
As for why the (pretty dubious) relocation is there at all, I don't have a clue except to say that it's going to be specific to native_posix as nothing else we build uses PIC, AFAIK. The native_posix rig works with the host compiler, so it's subject to this kind of version skew. One that bites me (with gcc 8.1.1 on Fedora 28) at the moment is a static warning about strncpy()'ing a string literal longer than the output buffer, in a test designed to check the truncation behavior of strncpy()! Andy From: David Brown
<david.brown@...>
Sent: Wednesday, May 23, 2018 9:48AM To: Devel Subject: [Zephyr-devel] Building on Gentoo/creating a DT_TEXTREL in shared object I'm trying to figure out how to get Zephyr's sanity tests to build on |
|