H.J. Lu
4e46c5a14f
ld: Issue an error if group nested too deeply
...
If a linker script has a group nested too deeply by mistake, issue an
error instead of hanging forever without outputting any error message.
PR ld/33265
* ldlang.c (MAX_NESTED_GROUP_DEPTH): New.
(open_input_bfds): Add a pointer argument for the nested group
count. Increment the count before the while loop and decrement
it after the loop. Issue an error if the nested group count >=
MAX_NESTED_GROUP_DEPTH when processing input statement.
(lang_process): Update open_input_bfds calls.
(cmdline_emit_object_only_section): Likewise.
* testsuite/ld-scripts/libpr33265-1.a: New file.
* testsuite/ld-scripts/libpr33265-2.a: Likewise.
* testsuite/ld-scripts/libpr33265-3a.a: Likewise.
* testsuite/ld-scripts/libpr33265-3b.a: Likewise.
* testsuite/ld-scripts/libpr33265-3c.a: Likewise.
* testsuite/ld-scripts/pr33265-1.d: Likewise.
* testsuite/ld-scripts/pr33265-2.d: Likewise.
* testsuite/ld-scripts/pr33265-3.d: Likewise.
* testsuite/ld-scripts/script.exp: Run PR ld/33265 tests.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com >
2025-08-18 05:13:57 -07:00
..
2020-07-07 18:26:34 +09:30
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2023-11-10 11:37:27 +00:00
2020-07-07 18:26:34 +09:30
2025-01-01 18:29:57 +10:30
2020-07-07 18:26:34 +09:30
2025-01-01 18:29:57 +10:30
2023-02-17 15:19:47 +10:30
2023-02-14 10:13:28 +00:00
2023-02-16 16:27:08 +00:00
2025-01-01 18:29:57 +10:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2017-08-07 22:10:51 +09:30
2016-05-19 14:07:06 +09:30
2016-05-19 14:07:06 +09:30
2016-05-19 14:07:06 +09:30
2016-05-19 14:07:06 +09:30
2016-05-19 14:07:06 +09:30
2016-05-19 14:07:06 +09:30
2025-01-01 18:29:57 +10:30
2020-12-24 22:58:03 +10:30
2025-01-01 18:29:57 +10:30
2021-03-09 08:52:32 +01:00
2021-03-09 08:52:32 +01:00
2021-03-09 08:52:32 +01:00
2021-03-09 08:52:32 +01:00
2025-01-01 18:29:57 +10:30
2020-07-07 18:26:34 +09:30
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2023-11-10 11:37:27 +00:00
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2018-09-17 23:17:14 +09:30
2016-11-23 11:10:39 +00:00
2025-01-01 18:29:57 +10:30
2016-11-23 11:10:39 +00:00
2025-01-01 18:29:57 +10:30
2019-09-11 13:45:18 +09:30
2023-08-02 12:06:23 +01:00
2020-04-21 15:10:52 +01:00
2023-08-02 12:06:23 +01:00
2020-04-21 15:10:52 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2021-10-28 10:51:03 +10:30
2021-10-28 10:51:03 +10:30
2023-08-02 12:06:23 +01:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2016-11-23 11:10:39 +00:00
2025-01-01 18:29:57 +10:30
2016-11-23 11:10:39 +00:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2022-11-30 17:15:08 +01:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2016-11-04 12:04:11 +00:00
2016-11-04 12:04:11 +00:00
2025-01-01 18:29:57 +10:30
2023-01-02 14:03:22 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2023-11-06 13:59:53 +00:00
2023-11-06 13:59:53 +00:00
2017-07-19 13:11:59 +01:00
2017-07-19 13:11:59 +01:00
2017-07-19 13:11:59 +01:00
2023-01-02 14:03:22 +10:30
2023-08-16 14:22:54 +01:00
2020-07-07 18:26:34 +09:30
2020-08-25 19:31:57 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2025-01-01 18:29:57 +10:30
2023-03-16 14:39:12 +00:00
2023-03-16 14:39:12 +00:00
2023-03-15 14:27:21 +00:00
2025-08-18 05:13:57 -07:00
2025-08-18 05:13:57 -07:00
2025-08-18 05:13:57 -07:00
2025-08-18 05:13:57 -07:00
2025-08-18 05:13:57 -07:00
2025-01-01 18:29:57 +10:30
2025-04-02 11:06:33 +01:00
2021-03-04 16:56:40 +01:00
2023-05-10 10:29:52 +01:00
2025-04-02 11:06:33 +01:00
2020-04-21 15:10:52 +01:00
2020-04-21 15:10:52 +01:00
2022-02-16 17:41:23 +00:00
2022-02-16 17:41:23 +00:00
2016-06-28 12:43:14 +01:00
2025-01-01 18:29:57 +10:30
2023-07-28 06:00:36 +01:00
2025-01-01 18:29:57 +10:30
2023-08-02 12:06:23 +01:00
2025-01-01 18:29:57 +10:30
2023-08-02 12:06:23 +01:00
2016-11-28 17:51:57 +00:00
2023-08-02 12:06:23 +01:00
2025-01-01 18:29:57 +10:30
2023-08-02 12:06:23 +01:00
2023-06-15 11:45:03 +09:30
2016-05-09 17:07:33 +09:30
2023-11-10 11:37:27 +00:00
2020-07-07 18:26:34 +09:30
2023-11-10 11:37:27 +00:00
2020-04-17 14:16:27 +01:00
2023-11-10 11:37:27 +00:00
2021-03-10 08:12:37 +01:00
2017-10-09 04:17:24 -07:00
2021-03-10 08:12:37 +01:00
2022-01-05 05:06:18 -08:00
2018-08-26 22:45:59 +09:30
2019-02-06 17:33:54 +10:30
2019-01-29 06:07:42 -08:00
2019-01-29 06:07:42 -08:00
2019-01-29 06:07:42 -08:00
2025-08-14 08:00:04 -07:00
2025-08-14 08:00:04 -07:00
2020-12-24 22:58:03 +10:30
2020-12-24 22:58:03 +10:30
2020-12-24 22:58:03 +10:30
2025-08-18 05:13:57 -07:00
2025-08-18 05:13:57 -07:00
2025-08-18 05:13:57 -07:00
2023-12-18 12:32:14 +00:00
2023-12-18 12:32:14 +00:00
2025-01-01 18:29:57 +10:30
2018-07-20 09:19:00 -07:00
2020-08-25 19:31:57 +09:30
2020-07-07 18:26:34 +09:30
2020-08-25 19:31:57 +09:30
2020-07-07 18:26:34 +09:30
2018-01-11 17:35:34 +00:00
2020-07-07 18:26:34 +09:30
2020-08-25 19:31:57 +09:30
2018-01-11 17:35:34 +00:00
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2018-01-11 17:35:34 +00:00
2020-07-07 18:26:34 +09:30
2020-07-13 22:03:59 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-08-27 12:58:27 +01:00
2020-07-07 18:26:34 +09:30
2020-10-16 13:43:49 +01:00
2020-10-16 13:43:49 +01:00
2023-08-02 12:06:23 +01:00
2020-10-16 13:43:49 +01:00
2020-10-16 13:43:49 +01:00
2020-10-16 13:43:49 +01:00
2020-10-16 13:43:49 +01:00
2020-10-16 13:43:49 +01:00
2020-10-16 13:43:49 +01:00
2025-01-01 18:29:57 +10:30
2023-11-10 11:37:27 +00:00
2016-06-28 12:43:14 +01:00
2025-07-21 06:18:54 -07:00
2023-11-10 11:37:27 +00:00
2022-01-05 05:06:18 -08:00
2016-05-09 17:07:33 +09:30
2023-11-10 11:37:27 +00:00
2016-06-28 12:43:14 +01:00
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2021-01-06 21:03:55 +10:30
2016-01-18 13:00:33 +00:00
2025-01-01 18:29:57 +10:30
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2018-12-07 08:30:43 -08:00
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2018-12-07 08:30:43 -08:00
2023-01-31 15:18:04 +10:30
2025-01-01 18:29:57 +10:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2025-08-18 05:13:57 -07:00
2025-01-01 18:29:57 +10:30
2020-07-07 21:57:13 +09:30
2016-05-09 17:07:33 +09:30
2025-01-01 18:29:57 +10:30
2024-05-10 16:59:05 +01:00
2024-05-10 16:59:05 +01:00
2024-05-10 16:59:05 +01:00
2024-05-10 16:59:05 +01:00
2024-05-10 16:59:05 +01:00
2024-05-10 16:59:05 +01:00
2024-05-10 16:59:05 +01:00
2024-05-10 16:59:05 +01:00
2025-01-01 18:29:57 +10:30
2023-01-02 14:03:22 +10:30
2018-09-14 20:22:56 +01:00
2018-09-14 20:22:56 +01:00
2025-01-01 18:29:57 +10:30
2023-05-10 10:29:52 +01:00
2020-07-07 18:26:34 +09:30
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2022-11-28 16:30:18 +01:00
2022-11-28 16:30:18 +01:00
2023-11-01 13:51:17 +00:00
2023-11-01 13:51:17 +00:00
2023-11-01 13:51:17 +00:00
2023-11-01 13:51:17 +00:00
2023-11-10 11:37:27 +00:00
2023-08-02 12:06:23 +01:00
2023-11-01 13:51:17 +00:00
2023-11-01 13:51:17 +00:00
2023-11-01 13:51:17 +00:00
2023-11-01 13:51:17 +00:00
2023-11-01 13:51:17 +00:00
2023-11-01 13:51:17 +00:00
2025-01-01 18:29:57 +10:30
2023-08-02 12:06:23 +01:00
2024-05-10 16:59:05 +01:00
2024-02-28 16:36:37 +00:00
2024-02-28 16:36:37 +00:00
2024-02-28 16:36:37 +00:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30