H.J. Lu
d048eee291
ld: Use stat to check if linker script appears multiple times
...
Use stat, instead of strcmp, to check if the same linker script file
appears multiple times for
$ ld -L... -T ././/script.t -T script.t ...
Although ././/script.t and script.t access the same file, but their
filenames are different. strcmp won't work here.
Copy gnulib/import/same-inode.h to include since the gnulib directory
isn't included in the binutils tarball.
include/
PR ld/24576
* same-inode.h: New file. Copied from gnulib/import/same-inode.h.
ld/
PR ld/24576
* ldfile.c: Include "same-inode.h".
(ldfile_find_command_file): Change the second argument from bool
to enum script_open_style. Check if the same linker script file
appears multiple times by using stat, instead using strcmp.
(ldfile_open_command_file_1): Don't check if the same linker
script file appears multiple times here.
* testsuite/ld-scripts/pr24576-1.d: Adjusted.
* testsuite/ld-scripts/pr24576-2.d: New.
* testsuite/ld-scripts/script.exp: Run pr24576-2.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com >
2025-08-14 08:00:04 -07: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
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2023-02-17 15:19:47 +10:30
2023-02-16 16:27:08 +00:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10: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
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
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +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
2023-08-16 14:22:54 +01:00
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-01-01 18:29:57 +10:30
2025-04-02 11:06:33 +01:00
2023-05-10 10:29:52 +01:00
2025-04-02 11:06:33 +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
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
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2025-08-14 08:00:04 -07:00
2025-08-14 08:00:04 -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
2023-08-02 12:06:23 +01:00
2025-01-01 18:29:57 +10:30
2023-11-10 11:37:27 +00:00
2025-07-21 06:18:54 -07: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
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +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
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2025-01-01 18:29:57 +10:30
2025-08-14 08:00:04 -07:00
2025-01-01 18:29:57 +10: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
2025-01-01 18:29:57 +10:30
2023-05-10 10:29: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-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