xtensa GCC incorrectly uses %ld/0x%lx format specifiers to output
HOST_WIDE_INT values, which results in incorrect code generation by the
compiler built for armhf host.
The original issue:
https://github.com/qca/open-ath9k-htc-firmware/issues/130
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
zlib refuses to run configure with mingw32 host and insists that
win32/Makefile.gcc is used instead.
This requires a change in this Makefile to support static-only builds.
Fixes#694.
Signed-off-by: Alexey Neyman <stilor@att.net>
Allow cross-gdb and gdbserver. This requires removal of an explicit
check that disables gdbserver on android. However, the comment above
that check refers to exec_elf.h, which has been removed since API level
19. It builds fine with current selection of the sample (21). Only
build-tested, hope someone can give it a try and report back.
We can fine tune the check for GDB but I'll leave it for now.
Signed-off-by: Alexey Neyman <stilor@att.net>
... and edit the biggest chunk as in previous 950-bionic-android.patch.
Also, drop arm_neon.h - it is a separate package, will be added
separately.
Signed-off-by: Alexey Neyman <stilor@att.net>
GCC7 also checks -fsanitize=divide-by-zero, which generates a trap
and in sh4, traps in rtld result in link failure. Pull the fix from
upstream, although it is not a complete fix, I think: this still
generates a trap (SIGILL) rather than the intended SIGFPE.
Signed-off-by: Alexey Neyman <stilor@att.net>
- Existing 110-fix-eabihf.patch did not apply to 1.20.0 and earlier
- This patch is also applicable to 2.x versions
- The patch needs to be applied to both configure.in/configure
- Existing 200-optimising-for-space.patch also applies to all versions
before 2.4.0
- Similar issues exist in other config/mt-* files
- m68k patch is applicable to 2.* versions
Signed-off-by: Alexey Neyman <stilor@att.net>
... which fails to compile due to incompatible prototype for strlcpy()
which isn't even used.
2.6.33 dropped the prototype, so the patch is n/a for newer kernels.
Signed-off-by: Alexey Neyman <stilor@att.net>
Same as the base release as long as they applied.
MUSL patches didn't, removed.
Also, unobsolete Linaro GCC5 now that they rolled out a new release.
Signed-off-by: Alexey Neyman <stilor@att.net>
The -lcygwin -lc actually breaks the build: elf2flt picks up the symbols for getopt/optarg via
<getopt.h> in binutils-X.Y/include, where optarg is declared without dllimport attribute.
Therefore it pulls in getopt() from libc/libcygwin, but since optarg is not prefixed with
_imp__, it is pulled from libiberty. But the object file in libiberty also contains getopt()
thus resulting in multiple definitions thereof.
While there, kill extraneous -ldl passed into configure - configure detects -ldl successfully.
Upstream: https://github.com/uclinux-dev/elf2flt/pull/6
Signed-off-by: Alexey Neyman <stilor@att.net>