Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 295357 Details for
Bug 394237
sys-libs/glibc-2.13-r4 ARM bus error when relocating a misaligned R_ARM_ABS32 relocation
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug fix for misaligned R_ARM_ABS32 relocation
glibc-2.13-r4.patch (text/plain), 765 bytes, created by
junkmailnotread
on 2011-12-10 12:43:25 UTC
(
hide
)
Description:
Bug fix for misaligned R_ARM_ABS32 relocation
Filename:
MIME Type:
Creator:
junkmailnotread
Created:
2011-12-10 12:43:25 UTC
Size:
765 bytes
patch
obsolete
>--- glibc-ports-2.13/sysdeps/arm/dl-machine.h.orig 2011-01-25 21:00:16.000000000 +0000 >+++ glibc-ports-2.13/sysdeps/arm/dl-machine.h 2011-12-10 00:32:45.841887177 +0000 >@@ -400,6 +400,7 @@ > break; > case R_ARM_ABS32: > { >+ union { Elf32_Addr v; unsigned char b[sizeof(Elf32_Addr)]; } hack; > # ifndef RTLD_BOOTSTRAP > /* This is defined in rtld.c, but nowhere in the static > libc.a; make the reference weak so static programs can >@@ -418,7 +419,9 @@ > used while loading those libraries. */ > value -= map->l_addr + refsym->st_value; > # endif >- *reloc_addr += value; >+ memcpy(hack.b, reloc_addr, sizeof(Elf32_Addr)); >+ hack.v += value; >+ memcpy(reloc_addr, hack.b, sizeof(Elf32_Addr)); > break; > } > case R_ARM_PC24:
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 394237
:
295357
|
295409