PR27198, segv in S_IS_WEAK
authorAlan Modra <amodra@gmail.com>
Sun, 17 Jan 2021 23:08:22 +0000 (09:38 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 18 Jan 2021 04:43:10 +0000 (15:13 +1030)
commit44365e88c0e021a7f734e44aa845f1e96cd83389
treed6de8abcb4c044ee0bc60e82c4fec15ed3396d18
parent994b25132814f4c2be93ce53a616a74139c4cf3c
PR27198, segv in S_IS_WEAK

Fix a NULL dereference seen when assembling invalid input.

PR 27198
* config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
* testsuite/gas/i386/pr27198.d,
* gas/testsuite/gas/i386/pr27198.err,
* gas/testsuite/gas/i386/pr27198.s: New test.
* gas/testsuite/gas/i386/i386.exp: Run it.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/pr27198.d [new file with mode: 0644]
gas/testsuite/gas/i386/pr27198.err [new file with mode: 0644]
gas/testsuite/gas/i386/pr27198.s [new file with mode: 0644]