From 6b43ddc8d71da68be7301628cc9b975e7b96bd36 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Mon, 20 Feb 2023 11:20:46 -0800 Subject: [PATCH] [build] Update user build flags Make symbols hidden by default, explicitly set architecture. --- assets/build/user-debug.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/build/user-debug.yaml b/assets/build/user-debug.yaml index 06ca8d9..356358f 100644 --- a/assets/build/user-debug.yaml +++ b/assets/build/user-debug.yaml @@ -9,7 +9,12 @@ variables: "-fno-omit-frame-pointer", "-fno-stack-protector", - "-g", + "-g3", + "-ggdb", + + "-fno-plt", + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", "-D__ELF__", "-D__jsix__", @@ -28,8 +33,10 @@ variables: ldflags: [ "-g", + "-m", "elf_x86_64", "-Bstatic", "--sysroot='${source_root}/sysroot'", + "--no-eh-frame-hdr", "-L", "${source_root}/sysroot/lib", "-z", "separate-code", "-lc++", "-lc++abi", "-lunwind",