[PATCH v2] ld: Change indirect symbol from IR to undefined
Alan Modra
amodra@gmail.com
Sat Aug 28 00:53:23 GMT 2021
More information about the Binutils mailing list
Sat Aug 28 00:53:23 GMT 2021
- Previous message (by thread): [PATCH v2] ld: Change indirect symbol from IR to undefined
- Next message (by thread): [PATCH] haiku: operating system support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Aug 28, 2021 at 10:17:04AM +0930, Alan Modra wrote: > On Fri, Aug 27, 2021 at 08:00:22AM -0700, H.J. Lu wrote: > > Here is the v2 patch. > > OK, looks good. I've also just committed the following, a fix to my pr26978 patch. PR 28264 PR 26978 * linker.c (_bfd_generic_link_add_one_symbol <MIND>): Check that string is non-NULL. diff --git a/bfd/linker.c b/bfd/linker.c index 755ff19923b..f8257ea11b4 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -1682,7 +1682,7 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info, cycle = true; break; } - if (strcmp (h->u.i.link->root.string, string) == 0) + if (string != NULL && strcmp (h->u.i.link->root.string, string) == 0) break; /* Fall through. */ case MDEF: -- Alan Modra Australia Development Lab, IBM
- Previous message (by thread): [PATCH v2] ld: Change indirect symbol from IR to undefined
- Next message (by thread): [PATCH] haiku: operating system support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list