]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc: make ld-2.28.so reproducible on arm
authorMartin Hundebøll <martin@geanix.com>
Tue, 6 Nov 2018 10:04:16 +0000 (11:04 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Nov 2018 22:21:01 +0000 (22:21 +0000)
Play the whack-a-mole game and add the .file directive to another
assembly file that otherwise shows itself in ld-2.28.so debug file,
which in turns alters the build-id of ld-2.28.so on target.

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glibc/glibc/0034-inject-file-assembly-directives.patch

index 3f9f8cf189de97475930e4cbd764b12a993eca41..55eba2d43ec8648df4c587c44241cbd9fb8f09e8 100644 (file)
@@ -257,3 +257,16 @@ index 244d87fb6d..14d3e2ce14 100644
  /* Initial entry point code for the dynamic linker.
     The C function `_dl_start' is the real entry point;
     its return value is the user program's entry point.        */
+diff --git a/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S b/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S
+index d26ad1f8d3..a0de10bf81 100644
+--- a/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S
++++ b/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S
+@@ -27,6 +27,8 @@
+    ARM unwind tables for register to register moves, the actual opcodes
+    are not defined.  */
++      .file "libc-do-syscall.S"
++
+ #if defined(__thumb__)
+       .thumb
+       .syntax unified