Skip to contentSkip to conversation

gcc: backport patch to fix data relocation to !ENDBR: stpcpy

PATCH New Bin Lan 1 participant 1 message Dec 18, 2024

lore
Share & tools
lore

Bin Lan

author
#0 lore raw

PATCH v2 1/1 gcc: backport patch to fix data relocation to !ENDBR: stpcpy

There is the following warning when building linux-yocto with default configuration on x86-64 with gcc-14.2:

  AR      built-in.a
  AR      vmlinux.a
  LD      vmlinux.o

vmlinux.o: warning: objtool: .export_symbol+0x332a0: data relocation to !ENDBR: stpcpy+0x0

This change set removes the warning.

PR target/116174 [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116174]

---
 meta/recipes-devtools/gcc/gcc-14.2.inc        |   3 +-
 ...ch-to-fix-data-relocation-to-ENDBR-s.patch | 447 ++++++++++++++++++
 2 files changed, 449 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/gcc/gcc/0027-gcc-backport-patch-to-fix-data-relocation-to-ENDBR-s.patch
meta/recipes-devtools/gcc/gcc-14.2.inc +2 -1
index 4f505bef68..1cf079ae75 100644
@@ -68,7 +68,8 @@ SRC_URI = "${BASEURI} \
            file://0023-Fix-install-path-of-linux64.h.patch \
            file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \
            file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
-	   file://0026-gcc-Fix-c-tweak-for-Wrange-loop-construct.patch \
+           file://0026-gcc-Fix-c-tweak-for-Wrange-loop-construct.patch \
+           file://0027-gcc-backport-patch-to-fix-data-relocation-to-ENDBR-s.patch \
            file://gcc.git-ab884fffe3fc82a710bea66ad651720d71c938b8.patch \
 "
 
meta/recipes-devtools/gcc/gcc/0027-gcc-backport-patch-to-fix-data-relocation-to-ENDBR-s.patch new file +447 -0

447 lines not on this page · raw message

Signature · 1 line
2.47.0