diff options
author | Alan Modra <amodra@gmail.com> | 2025-02-10 13:14:16 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-02-10 13:29:08 +1030 |
commit | 6488f1e65adf232d1cfdded7f5fb1451f27eee78 (patch) | |
tree | fd793478fa8ec3d5dcc86b25683c97229fd49f43 | |
parent | 64da7fa527463f505bd085cd29cf57d8d5b6e8ef (diff) | |
download | binutils-6488f1e65adf232d1cfdded7f5fb1451f27eee78.zip binutils-6488f1e65adf232d1cfdded7f5fb1451f27eee78.tar.gz binutils-6488f1e65adf232d1cfdded7f5fb1451f27eee78.tar.bz2 |
tc-i386.c fix for oss-fuzz gas fuzzing
oss-fuzz fuzz_as is seriously broken with respect to gas static
variables, so much so that most fuzz_as reports should simply be
ignored. This patch is a fix for
https://oss-fuzz.com/testcase-detail/6268463220654080
* config/tc-i386.c (i386_md_end): Clear GOT_symbol.
-rw-r--r-- | gas/config/tc-i386.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 62058f7..538e3fb 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -3612,6 +3612,7 @@ i386_md_end (void) { htab_delete (op_hash); htab_delete (reg_hash); + GOT_symbol = NULL; } #ifdef DEBUG386 |