Peter Edwards
fa4f2d46f9
x86: Fix DT_JMPREL/DT_PLTRELSZ when relocs share a section
...
If a linker script does not place the PLT relocations and "normal"
relocations in separate ELF sections, `ld` will currently output incorrect
values for DT_JMPREL and DT_PLTRELSZ - they cover the entire ELF section,
rather than just the PLT relocations
Don't ignore the extent of the BFD section - use the size of the srelplt
BFD section and its offset from the output_secttion
bfd/
PR ld/30787
* elfxx-x86.c (_bfd_x86_elf_finish_dynamic_sections): Use input
section for DT_JMPREL and DT_PLTRELSZ.
ld/
PR ld/30787
* testsuite/ld-i386/i386.exp: Run pr30787.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr30787.d: New file.
* testsuite/ld-i386/pr30787.s: Likewise.
* testsuite/ld-i386/pr30787.t: Likewise.
* testsuite/ld-x86-64/pr30787.d: Likewise.
* testsuite/ld-x86-64/pr30787.s: Likewise.
* testsuite/ld-x86-64/pr30787.t: Likewise.
2023-08-23 09:10:16 -07:00
..
2018-07-20 09:19:00 -07:00
2018-07-20 09:19:00 -07:00
2022-05-27 14:12:33 +01:00
2019-12-12 12:03:45 -08:00
2023-08-02 12:06:23 +01:00
2022-05-27 14:12:33 +01:00
2021-05-26 12:13:24 -07:00
2023-07-17 08:17:44 +09:30
2022-01-12 06:04:52 -08:00
2022-01-12 06:04:52 -08:00
2022-01-12 06:04:52 -08:00
2023-01-01 21:50:11 +10:30
2023-08-23 09:10:16 -07:00
2022-05-27 14:12:33 +01:00
2022-05-27 14:12:33 +01:00
2018-08-17 03:54:16 -07:00
2022-05-27 14:12:33 +01:00
2019-08-08 17:04:31 +01:00
2022-05-27 14:12:33 +01:00
2018-06-08 20:17:34 +09:30
2022-05-27 14:12:33 +01:00
2019-08-08 17:04:31 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2020-06-09 06:57:25 -07:00
2020-06-09 06:57:25 -07:00
2022-05-31 14:55:41 -07:00
2020-10-05 05:58:33 -07:00
2020-10-05 05:58:33 -07:00
2020-10-05 05:58:33 -07:00
2020-10-05 05:58:33 -07:00
2020-10-05 05:58:33 -07:00
2020-06-30 08:56:14 -07:00
2022-05-31 14:55:41 -07:00
2022-05-31 14:55:41 -07:00
2022-05-31 14:55:41 -07:00
2022-05-31 14:55:41 -07:00
2022-05-31 14:55:41 -07:00
2022-05-31 14:55:41 -07:00
2022-05-31 14:55:41 -07:00
2022-05-31 14:55:41 -07:00
2022-05-31 14:55:41 -07:00
2022-05-31 14:55:41 -07:00
2023-01-01 21:50:11 +10:30
2020-05-25 04:54:50 -07:00
2021-05-28 09:34:28 -07:00
2021-04-26 10:41:35 +02:00
2022-06-27 12:28:59 +09:30
2021-01-07 06:46:55 -08:00
2022-05-31 14:55:41 -07:00
2021-01-07 06:46:55 -08:00
2021-01-07 06:46:55 -08:00
2022-05-31 14:55:41 -07:00
2021-01-07 06:46:55 -08:00
2020-06-30 08:56:14 -07:00
2020-06-30 08:56:14 -07:00
2018-07-20 09:19:00 -07:00
2018-07-20 09:19:00 -07:00
2022-07-19 08:41:52 -07:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2020-05-25 04:54:50 -07:00
2021-01-07 06:46:55 -08:00
2021-01-07 06:46:55 -08:00
2020-05-25 04:54:50 -07:00
2020-05-25 04:54:50 -07:00
2021-01-07 06:46:55 -08:00
2020-06-30 08:56:14 -07:00
2020-06-30 08:56:14 -07:00
2020-05-25 04:54:50 -07:00
2020-05-25 04:54:50 -07:00
2020-05-25 04:54:50 -07:00
2020-06-30 08:56:14 -07:00
2020-06-30 08:56:14 -07:00
2022-05-27 14:12:33 +01:00
2020-06-30 08:56:14 -07:00
2020-06-30 08:56:14 -07:00
2022-05-27 14:12:33 +01:00
2020-06-30 08:56:14 -07:00
2022-02-07 13:42:41 +10:30
2020-06-30 08:56:14 -07:00
2022-02-11 10:24:54 -08:00
2020-02-02 17:08:01 -08:00
2018-05-21 20:39:30 -07:00
2018-05-26 04:27:24 -07:00
2018-05-26 04:27:24 -07:00
2018-05-26 04:27:24 -07:00
2019-08-08 17:04:31 +01:00
2018-08-24 04:42:15 -07:00
2018-07-05 09:24:18 -07:00
2018-08-24 04:42:15 -07:00
2020-10-30 06:50:10 -07:00
2018-08-24 04:42:15 -07:00
2018-08-24 04:42:15 -07:00
2019-08-08 17:04:31 +01:00
2019-08-08 17:04:31 +01:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2018-11-05 09:01:43 -08:00
2018-11-05 09:01:43 -08:00
2022-05-27 14:12:33 +01:00
2019-02-27 11:53:27 -08:00
2019-02-27 11:53:27 -08:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2022-05-27 14:12:33 +01:00
2022-05-27 14:12:33 +01:00
2020-10-06 15:38:34 -07:00
2020-10-06 15:38:34 -07:00
2020-10-06 15:38:34 -07:00
2022-01-12 06:04:51 -08:00
2020-11-13 15:44:47 -08:00
2022-05-27 14:12:33 +01:00
2021-01-17 20:01:30 -08:00
2021-01-17 20:01:30 -08:00
2021-12-02 03:55:10 -08:00
2022-01-07 17:58:20 -08:00
2021-12-02 03:55:10 -08:00
2021-12-02 03:55:10 -08:00
2021-12-02 03:55:10 -08:00
2021-12-02 03:55:10 -08:00
2021-12-02 03:55:10 -08:00
2021-12-02 03:55:10 -08:00
2021-12-02 03:55:10 -08:00
2021-12-02 03:55:10 -08:00
2021-12-02 03:55:10 -08:00
2022-07-21 11:40:27 -07:00
2021-06-19 20:21:04 -07:00
2022-07-21 11:40:27 -07:00
2021-06-19 20:21:04 -07:00
2022-02-07 16:04:10 -08:00
2022-02-07 16:04:10 -08:00
2022-02-11 10:24:54 -08:00
2022-02-11 10:24:54 -08:00
2022-02-11 10:24:54 -08:00
2022-02-15 15:08:17 -08:00
2022-02-15 15:08:17 -08:00
2023-08-23 09:10:16 -07:00
2023-08-23 09:10:16 -07:00
2023-08-23 09:10:16 -07:00
2019-09-09 09:21:36 -07:00
2020-10-30 06:50:10 -07:00
2019-09-09 09:21:36 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2019-09-09 09:21:36 -07:00
2019-09-09 09:21:36 -07:00
2020-10-30 06:50:10 -07:00
2020-10-09 05:13:26 -07:00
2020-10-09 05:13:26 -07:00
2020-10-30 06:50:10 -07:00
2020-10-09 05:13:26 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-09 05:13:26 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2019-04-11 08:21:30 -07:00
2019-04-11 08:21:30 -07:00
2019-04-11 08:21:30 -07:00
2019-04-11 08:21:30 -07:00
2019-04-11 08:21:30 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2019-04-11 08:21:30 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2021-02-20 05:55:42 -08:00
2020-10-09 05:13:26 -07:00
2020-10-09 05:13:26 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2020-10-30 06:50:10 -07:00
2022-07-19 08:41:52 -07:00
2022-05-27 14:12:33 +01:00
2022-07-19 08:41:52 -07:00
2022-07-19 08:41:52 -07:00
2022-05-27 14:12:33 +01:00
2022-01-12 06:04:51 -08:00
2022-01-04 11:12:01 -08:00
2021-01-15 18:07:07 -08:00
2020-02-02 17:08:01 -08:00
2023-01-01 21:50:11 +10:30
2021-01-07 06:46:55 -08:00
2021-01-07 06:46:55 -08:00
2021-01-07 06:46:55 -08:00
2021-01-07 06:46:55 -08:00
2021-01-07 06:46:55 -08:00
2018-06-08 20:17:34 +09:30
2021-09-22 10:24:05 +09:30
2018-06-08 20:17:34 +09:30
2021-01-07 06:46:55 -08:00
2021-01-07 06:46:55 -08:00
2018-09-17 10:10:47 +01:00
2018-09-17 10:10:47 +01:00
2022-05-27 14:12:33 +01:00
2022-05-27 14:12:33 +01:00
2020-05-25 04:54:50 -07:00
2020-05-25 04:54:50 -07:00
2022-05-31 11:25:09 +09:30
2022-05-31 11:25:09 +09:30
2020-07-03 17:15:16 +09:30
2018-10-08 20:26:08 +10:30
2020-05-27 04:54:10 -07:00