Summary: | ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory | ||
---|---|---|---|
Product: | binutils | Reporter: | Stephan Schreiber <info> |
Component: | ld | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ebotcazou, jason.duerstock, jeremip11, jrtc27, simonbeckwith092, slyich, tomwitmann099, wilson |
Priority: | P2 | ||
Version: | 2.23 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: |
A patch proposal for the bug.
updated untested patch |
Description
Stephan Schreiber
2013-08-28 20:47:36 UTC
I just ran into this when compiling qtwebkit, and can confirm that this patch fixed the issue for me. Stephan, if you're still interested in this bug, could you please add a suitable ChangeLog-style commit message and submit this to the mailing list? Created attachment 10855 [details]
updated untested patch
The patch looks mostly correct, but we should be setting changed_contents also. The patch looks small enough and obvious enough that I don't think that we need a copyright assignment for the provided patch. Unfortunately, I don't have access to ia64 hardware, so I can't easily test the patch with anything other than the binutils testsuite. The master branch has been updated by Jim Wilson <wilson@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6f6372fadcfffc89ef511d51323678f88624be5c commit 6f6372fadcfffc89ef511d51323678f88624be5c Author: Jim Wilson <jimw@sifive.com> Date: Mon Feb 26 14:05:13 2018 -0800 IA-64: Fix linker error with --no-keep-memory. bfd/ PR 15904 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl call, set changed_contents and changed_relocs. Likewise after successful ia64_elf_relax_br call. Updated patch committed. Updated patch committed. (In reply to Jim Wilson from comment #5) > Updated patch committed. Great, thanks! Could you please consider backporting it to the 2.30 branch? The binutils-2_30-branch branch has been updated by Jim Wilson <wilson@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=309c6330b67af549963b2b34986b2dd08baa5ba6 commit 309c6330b67af549963b2b34986b2dd08baa5ba6 Author: Jim Wilson <jimw@sifive.com> Date: Wed Feb 28 10:03:31 2018 -0800 IA-64: Fix linker error with --no-keep-memory. Import patch from mainline: 2018-02-26 Jim Wilson <jimw@sifive.com> Stephan Schreiber <info@fs-driver.org> PR 15904 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl call, set changed_contents and changed_relocs. Likewise after successful ia64_elf_relax_br call. Updated patch committed. https://www.just4dummies.com/gmail-sign-up Updated patch committed. http://happy-wheelsgames.com/ |