diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2025-03-10 12:00:51 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-03-10 12:03:27 +0100 |
commit | b996cd610ed56da9c267a9c72356d7638648ed69 (patch) | |
tree | 2024864d7191b2f91e97ca8af1f8b59dc1919312 /ldso | |
parent | e921185d316af9e4a6b44ebac3a17874e461e9ec (diff) |
bfin: fix compile and linking errors with gcc 14.2.0
ld.so must be compiled with -ffreestanding to avoid emits of
memset/memcpy from gcc.
Disable some extra warnings for Blackfin to avoid a compile
error.
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/Makefile.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ldso/ldso/Makefile.in b/ldso/ldso/Makefile.in index 6e8a0c388..0f8ed140d 100644 --- a/ldso/ldso/Makefile.in +++ b/ldso/ldso/Makefile.in @@ -19,6 +19,11 @@ ifeq ($(TARGET_ARCH),arm) CFLAGS-rtld += -fno-unwind-tables -fno-asynchronous-unwind-tables endif +ifeq ($(TARGET_ARCH),bfin) +# for gcc 10.5.0 and above we need to use -ffreestanding +CFLAGS-rtld += -ffreestanding +endif + CFLAGS-rtld += -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include -I$(top_srcdir)ldso/ldso CFLAGS-rtld += -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" |