diff options
author | Michael Matz <matz@suse.de> | 2023-06-26 17:11:31 +0200 |
---|---|---|
committer | Michael Matz <matz@suse.de> | 2023-06-28 18:08:54 +0200 |
commit | edc1244e9b864daf7b3905fdcbe15407b6aa79e4 (patch) | |
tree | 788c34ef6780bafa1b8c0e4d64d2f5dee1439540 /libsframe | |
parent | 6e27b5eb0072902173305d0ce41c33b82f5b2bb3 (diff) | |
download | binutils-edc1244e9b864daf7b3905fdcbe15407b6aa79e4.zip binutils-edc1244e9b864daf7b3905fdcbe15407b6aa79e4.tar.gz binutils-edc1244e9b864daf7b3905fdcbe15407b6aa79e4.tar.bz2 |
section-match: Check parent archive name as well
rewriting the section matching routines lost a special case
of matching: section statements of the form
NAME(section-glob)
normally match against NAME being an object file, but like in
the exclude list we happened to accept archive names as NAME
(undocumented). The documented way to specify (all) archive members
is by using e.g.
lib.a:(section-glob)
(that does work also with the prefix tree matcher).
But I intended to not actually change behaviour with the prefix
tree implementation. So, let's also implement checking against
archive names with a similar FIXME comment we already have in
walk_wild_file_in_exclude_list.
PR 30590
ld/
* ldlang.c (walk_wild_section_match): Also look at archive
parents for a name match.
Diffstat (limited to 'libsframe')
0 files changed, 0 insertions, 0 deletions