projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fafcbd1
)
Don't warn on .attach_to_group to same group
author
Alan Modra
<amodra@gmail.com>
Fri, 21 Jul 2023 22:44:38 +0000
(08:14 +0930)
committer
Alan Modra
<amodra@gmail.com>
Wed, 26 Jul 2023 00:34:31 +0000
(10:04 +0930)
* config/obj-elf.c (obj_elf_attach_to_group): Don't warn if
group name matches current group for section.
gas/config/obj-elf.c
patch
|
blob
|
history
diff --git
a/gas/config/obj-elf.c
b/gas/config/obj-elf.c
index
753a929
..
dc05b35
100644
(file)
--- a/
gas/config/obj-elf.c
+++ b/
gas/config/obj-elf.c
@@
-1088,8
+1088,9
@@
obj_elf_attach_to_group (int dummy ATTRIBUTE_UNUSED)
if (elf_group_name (now_seg))
{
- as_warn (_("section %s already has a group (%s)"),
- bfd_section_name (now_seg), elf_group_name (now_seg));
+ if (strcmp (elf_group_name (now_seg), gname) != 0)
+ as_warn (_("section %s already has a group (%s)"),
+ bfd_section_name (now_seg), elf_group_name (now_seg));
return;
}