Update to ONDK r27.0

Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
topjohnwu
2024-04-25 23:27:12 -07:00
committed by John Wu
parent 4bac2df4e7
commit b678afa4b6
8 changed files with 8 additions and 24 deletions

View File

@@ -76,11 +76,10 @@ LOCAL_SRC_FILES := \
init/selinux.cpp \
init/init-rs.cpp
LOCAL_LDFLAGS := -static -T src/lto_fix.lds
LOCAL_LDFLAGS := -static
ifdef B_CRT0
LOCAL_STATIC_LIBRARIES += crt0
LOCAL_LDFLAGS :=
endif
include $(BUILD_EXECUTABLE)
@@ -107,11 +106,11 @@ LOCAL_SRC_FILES := \
boot/format.cpp \
boot/boot-rs.cpp
LOCAL_LDFLAGS := -static -T src/lto_fix.lds
LOCAL_LDFLAGS := -static
ifdef B_CRT0
LOCAL_STATIC_LIBRARIES += crt0
LOCAL_LDFLAGS := -lm
LOCAL_LDFLAGS += -lm
endif
include $(BUILD_EXECUTABLE)

View File

@@ -17,10 +17,9 @@ NDK_APP_OUT := ./obj/nolibc
endif
# Busybox should use stock libc.a
# Busybox should use a newer libc.a
ifdef B_BB
APP_PLATFORM := android-26
APP_LDFLAGS += -T src/lto_fix.lds
ifeq ($(OS),Windows_NT)
APP_SHORT_COMMANDS := true
endif

View File

@@ -1,12 +0,0 @@
SECTIONS {
.init_array : {
*(SORT_BY_INIT_PRIORITY(.init_array.*))
*(EXCLUDE_FILE(*crtend_android.o) .init_array)
}
} INSERT AFTER .fini_array;
SECTIONS {
.fini_array : {
*(SORT_BY_INIT_PRIORITY(.fini_array.*))
*(EXCLUDE_FILE(*crtend_android.o) .fini_array)
}
} INSERT BEFORE .init_array;