Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 295409 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]
glibc arm reloc
glibc-unaligned-abs-reloc.patch (text/plain), 931 bytes, created by
SpanKY
on 2011-12-10 19:31:08 UTC
(
hide
)
Description:
glibc arm reloc
Filename:
MIME Type:
Creator:
SpanKY
Created:
2011-12-10 19:31:08 UTC
Size:
931 bytes
patch
obsolete
>diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h >index 5ceeaa9..fe64800 100644 >--- a/sysdeps/arm/dl-machine.h >+++ b/sysdeps/arm/dl-machine.h >@@ -413,6 +413,7 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc, > break; > case R_ARM_ABS32: > { >+ Elf32_Addr reloc_value; > # ifndef RTLD_BOOTSTRAP > /* This is defined in rtld.c, but nowhere in the static > libc.a; make the reference weak so static programs can >@@ -431,7 +432,10 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc, > used while loading those libraries. */ > value -= map->l_addr + refsym->st_value; > # endif >- *reloc_addr += value; >+ /* Support relocations on mis-aligned offsets. */ >+ memcpy (&reloc_value, reloc_addr_arg, sizeof (reloc_value)); >+ reloc_value += value; >+ memcpy (reloc_addr_arg, &reloc_value, sizeof (reloc_value)); > break; > } > case R_ARM_TLS_DESC:
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