Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 497414 Details for
Bug 632604
sys-libs/glibc-2.25-r5 fails with binutils-2.29: segfault running simple test during pkg_preinst on arm64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-AArch64-Use-hidden-__GI__dl_argv-in-rtld-startup-cod.patch
0001-AArch64-Use-hidden-__GI__dl_argv-in-rtld-startup-cod.patch (text/plain), 1.70 KB, created by
Sergei Trofimovich (RETIRED)
on 2017-10-02 12:51:21 UTC
(
hide
)
Description:
0001-AArch64-Use-hidden-__GI__dl_argv-in-rtld-startup-cod.patch
Filename:
MIME Type:
Creator:
Sergei Trofimovich (RETIRED)
Created:
2017-10-02 12:51:21 UTC
Size:
1.70 KB
patch
obsolete
> >ld-linux had a dynamic relocation in argv parsing code: > >#0 elf_machine_rela (skip_ifunc=0, reloc_addr_arg=0x0, version=<optimized out>, sym=0x0, reloc=0x0, map=0x0) at ../sysdeps/aarch64/dl-machine.h:370 >#1 elf_dynamic_do_Rela (skip_ifunc=0, lazy=0, nrelative=<optimized out>, relsize=<optimized out>, reladdr=<optimized out>, map=0x0) at do-rel.h:137 >#2 _dl_start (arg=<optimized out>) at rtld.c:489 >Backtrace stopped: Cannot access memory at address 0x8 > >https://bugs.gentoo.org/632604#c4 > >From e9177fba13549a8e2a6232f46080e5c6d3e467b1 Mon Sep 17 00:00:00 2001 >From: Szabolcs Nagy <szabolcs.nagy@arm.com> >Date: Wed, 21 Jun 2017 13:47:07 +0100 >Subject: [PATCH] [AArch64] Use hidden __GI__dl_argv in rtld startup code > >We rely on the symbol being locally defined so using extern symbol >is not correct and the linker may complain about the relocations. >--- > ChangeLog | 5 +++++ > sysdeps/aarch64/dl-machine.h | 4 ++-- > 2 files changed, 7 insertions(+), 2 deletions(-) > >diff --git a/sysdeps/aarch64/dl-machine.h b/sysdeps/aarch64/dl-machine.h >index 02fab04f40..60472036f5 100644 >--- a/sysdeps/aarch64/dl-machine.h >+++ b/sysdeps/aarch64/dl-machine.h >@@ -194,8 +194,8 @@ _dl_start_user: \n\ > cmp " PTR "0, #0 \n\ > bne 1b \n\ > // Update _dl_argv \n\ >- adrp x3, _dl_argv \n\ >- str " PTR "2, [x3, #:lo12:_dl_argv] \n\ >+ adrp x3, __GI__dl_argv \n\ >+ str " PTR "2, [x3, #:lo12:__GI__dl_argv] \n\ > .L_done_stack_adjust: \n\ > // compute envp \n\ > add " PTR "3, " PTR "2, " PTR "1, lsl #" PTR_SIZE_LOG " \n\ >-- >2.14.2.822.g60be5d43e6-goog >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 632604
:
497384
|
497386
| 497414