public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/28785] New: Support SHT_RELR (.relr.dyn) section
@ 2022-01-16 10:12 brobecker at gnat dot com
2022-01-16 10:13 ` [Bug gdb/28785] " brobecker at gnat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: brobecker at gnat dot com @ 2022-01-16 10:12 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28785
Bug ID: 28785
Summary: Support SHT_RELR (.relr.dyn) section
Product: gdb
Version: 11.2
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: brobecker at gnat dot com
Target Milestone: ---
PR to document the backport of the following commits, pushed on Jan 10th, 2022:
commit fb0b83d80d11c2501a9262198f26a820b09f5258
Author: Fangrui Song <maskray@google.com>
Date: Tue Dec 7 18:24:14 2021 -0800
bfd_section_from_shdr: Support SHT_RELR sections
If a.so contains an SHT_RELR section, objcopy a.so will fail with:
a.so: unknown type [0x13] section `.relr.dyn'
This change allows objcopy to work.
bfd/
* elf.c (bfd_section_from_shdr): Support SHT_RELR.
(cherry picked from commit a619b58721f0a03fd91c27670d3e4c2fb0d88f1e)
commit 67609c9c701ea8a679d80e3352266b058b184f4b
Author: Fangrui Song <maskray@google.com>
Date: Tue Nov 16 13:03:57 2021 -0800
readelf: Support SHT_RELR/DT_RELR for -r
The -r output for SHT_RELR looks like:
Relocation section '.relr.dyn' at offset 0x530 contains 4 entries:
7 offsets
00000000000028c0
00000000000028c8
0000000000003ad0
0000000000003ad8
0000000000003ae0
0000000000003ae8
0000000000003af0
For --use-dynamic, the header looks like
'RELR' relocation section at offset 0x530 contains 32 bytes:
include/
* elf/common.h (DT_ENCODING): Bump to 38.
* elf/external.h (Elf32_External_Relr): New.
(Elf64_External_Relr): New.
(cherry picked from commit a7fd11862703e45d2774981a4888bc127d473b06)
commit 1b244ed9d3f4dc3df364bcd65332985ab03de302
Author: Fangrui Song <maskray@google.com>
Date: Thu Nov 4 01:30:12 2021 -0700
readelf: Support RELR in -S and -d and output
readelf -r dumping support is not added in this patch.
include/
* elf/common.h: Add SHT_RELR, DT_RELR{,SZ,ENT}
bfd/
* elf.c (_bfd_elf_print_private_bfd_data): Add DT_RELR{,SZ,ENT}.
(cherry picked from commit dd207c1302d28d2d2b33cff058bb3fbf5138b480)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/28785] Support SHT_RELR (.relr.dyn) section
2022-01-16 10:12 [Bug gdb/28785] New: Support SHT_RELR (.relr.dyn) section brobecker at gnat dot com
@ 2022-01-16 10:13 ` brobecker at gnat dot com
2022-01-16 10:14 ` brobecker at gnat dot com
2022-01-16 13:29 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: brobecker at gnat dot com @ 2022-01-16 10:13 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28785
Joel Brobecker <brobecker at gnat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/28785] Support SHT_RELR (.relr.dyn) section
2022-01-16 10:12 [Bug gdb/28785] New: Support SHT_RELR (.relr.dyn) section brobecker at gnat dot com
2022-01-16 10:13 ` [Bug gdb/28785] " brobecker at gnat dot com
@ 2022-01-16 10:14 ` brobecker at gnat dot com
2022-01-16 13:29 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: brobecker at gnat dot com @ 2022-01-16 10:14 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28785
Joel Brobecker <brobecker at gnat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|11.2 |11.1
Status|NEW |RESOLVED
Target Milestone|--- |11.2
Resolution|--- |FIXED
--- Comment #1 from Joel Brobecker <brobecker at gnat dot com> ---
backports completed on Jan 10th.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/28785] Support SHT_RELR (.relr.dyn) section
2022-01-16 10:12 [Bug gdb/28785] New: Support SHT_RELR (.relr.dyn) section brobecker at gnat dot com
2022-01-16 10:13 ` [Bug gdb/28785] " brobecker at gnat dot com
2022-01-16 10:14 ` brobecker at gnat dot com
@ 2022-01-16 13:29 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2022-01-16 13:29 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28785
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |DUPLICATE
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Dup
*** This bug has been marked as a duplicate of bug 28758 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-16 13:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-16 10:12 [Bug gdb/28785] New: Support SHT_RELR (.relr.dyn) section brobecker at gnat dot com
2022-01-16 10:13 ` [Bug gdb/28785] " brobecker at gnat dot com
2022-01-16 10:14 ` brobecker at gnat dot com
2022-01-16 13:29 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).