# git rev-parse -q --verify ccb2d173b983984bfa35398abed3f8a76c75f788^{commit} # git fetch -q -n -f git://gitlab.ozlabs.ibm.com/mirror/linux-kbuild.git for-next # git rev-parse -q --verify ccb2d173b983984bfa35398abed3f8a76c75f788^{commit} ccb2d173b983984bfa35398abed3f8a76c75f788 # git checkout -q -f -B kisskb ccb2d173b983984bfa35398abed3f8a76c75f788 # git clean -qxdf # < git log -1 # commit ccb2d173b983984bfa35398abed3f8a76c75f788 # Author: Fangrui Song # Date: Tue Apr 11 20:09:44 2023 +0000 # # Makefile: use -z pack-relative-relocs # # Commit 27f2a4db76e8 ("Makefile: fix GDB warning with CONFIG_RELR") # added --use-android-relr-tags to fix a GDB warning # # BFD: /android0/linux-next/vmlinux: unknown type [0x13] section `.relr.dyn' # # The GDB warning has been fixed in version 11.2. # # The DT_ANDROID_RELR tag was deprecated since DT_RELR was standardized. # Thus, --use-android-relr-tags should be removed. While making the # change, try -z pack-relative-relocs, which is supported since LLD 15. # Keep supporting --pack-dyn-relocs=relr as well for older LLD versions. # There is no indication of obsolescence for --pack-dyn-relocs=relr. # # As of today, GNU ld supports the latter option for x86 and powerpc64 # ports and has no intention to support --pack-dyn-relocs=relr. In the # absence of the glibc symbol version GLIBC_ABI_DT_RELR, # --pack-dyn-relocs=relr and -z pack-relative-relocs are identical in # ld.lld. # # GNU ld and newer versions of LLD report warnings (instead of errors) for # unknown -z options. Only errors lead to non-zero exit codes. Therefore, # we should test --pack-dyn-relocs=relr before testing # -z pack-relative-relocs. # # Link: https://github.com/ClangBuiltLinux/linux/issues/1057 # Link: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=a619b58721f0a03fd91c27670d3e4c2fb0d88f1e # Signed-off-by: Fangrui Song # Reviewed-by: Nick Desaulniers # Acked-by: Will Deacon # Signed-off-by: Masahiro Yamada # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux-ld --version # < git log --format=%s --max-count=1 ccb2d173b983984bfa35398abed3f8a76c75f788 # < make -s -j 40 ARCH=sparc64 O=/kisskb/build/kbuild_sparc64-defconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- defconfig # < make -s -j 40 ARCH=sparc64 O=/kisskb/build/kbuild_sparc64-defconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- help # make -s -j 40 ARCH=sparc64 O=/kisskb/build/kbuild_sparc64-defconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- olddefconfig # make -s -j 40 ARCH=sparc64 O=/kisskb/build/kbuild_sparc64-defconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- :1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] WARNING: modpost: EXPORT symbol "_mcount" [vmlinux] version generation failed, symbol will not be versioned. Is "_mcount" prototyped in ? kernel: arch/sparc/boot/image is ready kernel: arch/sparc/boot/zImage is ready Completed OK # rm -rf /kisskb/build/kbuild_sparc64-defconfig_sparc64-gcc5 # Build took: 0:00:57.755966