Sourceware Bugzilla – Attachment 7174 Details for
Bug 15904
ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch proposal for the bug.
ia64-ld-reloc.patch (text/plain), 1.45 KB, created by
Stephan Schreiber
on 2013-08-28 20:47:36 UTC
(
hide
)
Description:
A patch proposal for the bug.
Filename:
MIME Type:
Creator:
Stephan Schreiber
Created:
2013-08-28 20:47:36 UTC
Size:
1.45 KB
patch
obsolete
>diff -urp10 binutils-2.23.52.20130727-orig/bfd/elfnn-ia64.c binutils-2.23.52.20130727-new/bfd/elfnn-ia64.c >--- binutils-2.23.52.20130727-orig/bfd/elfnn-ia64.c 2013-08-12 12:57:54.945250000 +0200 >+++ binutils-2.23.52.20130727-new/bfd/elfnn-ia64.c 2013-08-20 17:59:22.565888468 +0200 >@@ -586,34 +586,37 @@ elfNN_ia64_relax_section (bfd *abfd, ase > ia64_elf_relax_brl (contents, roff); > > irel->r_info > = ELFNN_R_INFO (ELFNN_R_SYM (irel->r_info), > R_IA64_PCREL21B); > > /* If the original relocation offset points to slot > 1, change it to slot 2. */ > if ((irel->r_offset & 3) == 1) > irel->r_offset += 1; >+ >+ changed_relocs = TRUE; > } > > continue; > } > else if (r_type == R_IA64_PCREL60B) > continue; > else if (ia64_elf_relax_br (contents, roff)) > { > irel->r_info > = ELFNN_R_INFO (ELFNN_R_SYM (irel->r_info), > R_IA64_PCREL60B); > > /* Make the relocation offset point to slot 1. */ > irel->r_offset = (irel->r_offset & ~((bfd_vma) 0x3)) + 1; >+ changed_relocs = TRUE; > continue; > } > > /* We can't put a trampoline in a .init/.fini section. Issue > an error. */ > if (strcmp (sec->output_section->name, ".init") == 0 > || strcmp (sec->output_section->name, ".fini") == 0) > { > (*_bfd_error_handler) > (_("%B: Can't relax br at 0x%lx in section `%A'. Please use brl or indirect branch."), > >Signed-off-by: Stephan Schreiber <info@fs-driver.org>
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 15904
: 7174 |
10855