Sourceware Bugzilla – Attachment 15236 Details for
Bug 31106
strip --strip-debug breaks relocations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
pr31106.patch (text/plain), 738 bytes, created by
Nick Clifton
on 2023-12-05 13:48:26 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Nick Clifton
Created:
2023-12-05 13:48:26 UTC
Size:
738 bytes
patch
obsolete
>diff --git a/bfd/elfcode.h b/bfd/elfcode.h >index ab8c3eaaf4c..2c2eb368df9 100644 >--- a/bfd/elfcode.h >+++ b/bfd/elfcode.h >@@ -1014,7 +1014,13 @@ elf_write_relocs (bfd *abfd, asection *sec, void *data) > sym = *ptr->sym_ptr_ptr; > if (sym == last_sym) > n = last_sym_idx; >- else if (bfd_is_abs_section (sym->section) && sym->value == 0) >+ /* If the relocation is against an absolute symbol whoes value is >+ zero, then the symbol can be dropped, simplifying the reloc. >+ PR 31106: Except for complex relocations where the symbols >+ itself might be significant. */ >+ else if (bfd_is_abs_section (sym->section) >+ && sym->value == 0 >+ && (sym->flags & BSF_RELC) == 0) > n = STN_UNDEF; > else > {
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 31106
:
15232
|
15235
| 15236 |
15237