Commit Graph

38 Commits

Author SHA1 Message Date
DavidKorczynski fed643a82f
binutils: add readelf_elf32_csky target (#7047) 2021-12-21 18:37:37 +00:00
DavidKorczynski 5fe8ecc3c4
binutils: add 3 new targetes readelfs (#7043)
Coverage should be tracked on these to see if they help explore their
respective architectures under the bfd/ directory.
2021-12-20 21:11:57 +00:00
DavidKorczynski 5f8608a2fc
Binutils: don't generate seeds but use prepared zip (#7036)
* Binutils: dont generate seeds but use prepared zip

* nit
2021-12-19 14:58:36 +00:00
DavidKorczynski 518cb7b4c2
binutils: cleanup build (#7002)
* binutils: cleanup build

A lot of updates has recently happened in the OSS-Fuzz integration, and
the build script got a bit excessive. This tries to limit the complexity
of the build script and also removes guards previously had for AFL
builds.

* binutils: cleaup build script more

* binutils: disable GAS fuzzer for afl
2021-12-10 19:18:54 +00:00
DavidKorczynski 54d17f48e7
binutils: no longer restrict afl build (#6899) 2021-11-24 16:49:17 +00:00
DavidKorczynski 12df8809db
binutils: fuzz dwarf (#6821)
* binutils: add pure dwarf fuzzer

* disable leak detection in fuzz dwarf
2021-11-12 22:10:54 +00:00
DavidKorczynski 55044d7e42
binutils: fix build (#6818)
* binutils: fix build

* fix nm linking
2021-11-12 19:30:53 +00:00
DavidKorczynski bc1648031a
binutils: add targeted readelf fuzzer (#6810) 2021-11-10 14:50:07 +00:00
DavidKorczynski 758a3c6946
binutils: add fuzz_nm preconditions (#6801) 2021-11-08 22:46:21 +00:00
DavidKorczynski 82edb9567f
binutils: add addr2line fuzzer (#6780) 2021-11-05 18:30:11 +00:00
DavidKorczynski d92411cd2d
binutils: cleanup seeds (#6753) 2021-11-03 15:14:54 +00:00
DavidKorczynski 2ef92e60d8
binutils: fix afl build so we dont run into false positives (#6748) 2021-11-02 22:58:36 +00:00
DavidKorczynski 446b56c31b
binutils: remove strings corpus and fix AFL build (#6717) 2021-11-01 11:36:38 +00:00
DavidKorczynski a915e85916
binutils: add main_repo and clean up set up (#6697) 2021-10-30 16:07:37 +01:00
DavidKorczynski 7c9c2358f0
binutils: Add targeted bfd architecture fuzzer and extended corpus (#6693)
* binutils: Add targeted bfd architecture fuzzer

* binutils: add proper seed-corpus

* binutils: typo fix

* binutils: create corpus for more fuzzers
2021-10-29 18:37:58 +01:00
DavidKorczynski 11310a70d5
binutils: 3 new fuzzers {windres, strings, ranlib} and build cleanup (#6690)
* binutils: 3 new fuzzers {windres, strings, ranlib} and build cleanup

* binutils: reduce fuzzers built in CI
2021-10-29 14:09:16 +01:00
DavidKorczynski 6053054a09
binutils: add dlltool fuzzer (#6675)
* binutils: add dlltool fuzzer

* binutils: build in a loop to try multiple times

* binutils: disable GAS building as AFLPP has problems with it

* disable building ld to make aflpp work

* binutils: simplify build

* binutils: reenable gas fuzzer

* binutils: conditionally build gas fuzzer
2021-10-28 22:06:40 +01:00
DavidKorczynski 9804465f3a
binutils: Extending and refining fuzzers (#6674)
Improve binutils fuzzing in three ways:
- Extend objdump and objcopy fuzzers. Make a version of objdump fuzzing
that is more stable
- New targetted disassembly fuzzer for mep architecture
- Include more extensive corpus

Signed-off-by: David Korczynski <david@adalogics.com>
2021-10-28 11:24:01 +01:00
DavidKorczynski c7f7c24040
binutils: extend targeted disassembly fuzzer (#6669)
* binutils: extend targeted disassembly fuzzer

Include the use of private data. Currently only for arm disassembly
to observe difference in coverage.

Signed-off-by: David Korczynski <david@adalogics.com>

* binutils: fix tmp aflpp issue
2021-10-27 23:01:54 +00:00
Alan Modra 32d042554c
Turn off leak detection for binutils (#6652)
Leaking a small amout of memory in a utility that runs then exits
is totally uninteresting.  Disable leak detection for nm and objdump
in addition to the others.  Also, save some build time by not
compiling libbacktrace which is currently unused by binutils.
2021-10-26 09:52:23 +01:00
DavidKorczynski cf0087b1a6
binutils: enable more dedicated disassembly fuzzers and use corpus for fuzz_nm and fuzz_objcopy (#6647) 2021-10-25 13:03:22 +01:00
DavidKorczynski 7b5b94721b
binutils: add GAS fuzzer and specialised disassembly fuzzer (#6640)
* binutils: add GAS fuzzer and specialised disassembly fuzzer

* binutils: cleanup formatting

* binutils: minor fix
2021-10-23 20:25:44 +01:00
DavidKorczynski a9f24c0d8b
binutils: optimise objdump and nm fuzzers (#6639)
* binutils: optimise objdump and nm fuzzers

* binutils: remove local flag in objdump
2021-10-23 18:49:04 +01:00
DavidKorczynski 6e6e507f46
binutils: add objcopy fuzzer (#6635)
* binutils: add objcopy fuzzer

* binutils: objcopy fuzzer: fix docs

* binutils: objcopy: use right naming

* binutils: objcopy: fix styling

* binutils: disable leak deteection for objcopy fuzzer

* binutils: copy over all option files
2021-10-22 16:41:51 +00:00
DavidKorczynski 26dd8cfa83
binutils: add objdump and nm fuzzer, and refactor (#6632)
* binutils: refactor and objdump and nm fuzzer

* cleanup build

* binutils: remove tabs

* binutils: bit more cleanup

* binutils: fix typo
2021-10-21 21:48:11 +01:00
DavidKorczynski 211088a883
binutils: fix build (#6520) 2021-09-25 13:45:50 +01:00
Catena cyber ca0365bbc2
Disables werror for binutils (#5628) 2021-04-18 08:23:51 -07:00
Alan Modra b57dd54803
Don't build parts of gdb when testing binutils (#5583)
gdb sources have been reorganised.  Disable more directories when
building the binutils fuzzers.
2021-04-06 06:10:01 -07:00
Abhishek Arya 4f5c06fbf7
Revert "[binutils] Add new fuzzer (#4128)" (#4133)
This reverts commit 6d59abf3ca.
2020-07-14 13:43:13 -07:00
Ravi Jotwani 6d59abf3ca
[binutils] Add new fuzzer (#4128)
* cleaned up Dockerfile, added new fuzzer, updated build script

* added license header to fuzz_demangle.c
2020-07-14 08:05:51 -07:00
DavidKorczynski 542543d4f7
[Binutils] Avoid detecting memory leaks in readelf fuzzer (#3718)
* Set ASAN to detect_leaks=0 as maintainers do not want memory leaks.

* Fixed so the options file are now placed correctly in the out directory.
2020-04-28 08:00:56 -07:00
DavidKorczynski 8caacee4f6
Removed the cxxfilt fuzzer as the code it targets is not maintained by binutils maintainers. (#3682) 2020-04-23 10:43:21 +10:00
DavidKorczynski 1a89d904e8
[binutils] Adding new fuzz targets (#3487)
Fixed travis.

Removed whitespace and fixed commit email for google cla

Fixed travis.

Removed whitespace and fixed commit email for google cla
2020-03-11 15:26:46 -07:00
Catena cyber 40a6d7ffdb Silence unsigned overflow (#3216) 2020-01-10 07:04:42 -08:00
Catena cyber 7cfb7aab73 Silence unsigned integer overflows in binutils project (#3178)
* Silence unsigned integer overflows in binutils

* Use fno-sanitize

* Condition on sanitizer
2020-01-09 07:46:31 -08:00
Catena cyber 44d340ef60 Adds a new target to binutils project (#3151) 2019-12-18 10:54:39 -08:00
Catena cyber dd68f02b02 Removes binutils patch, applied upstream (#3109) 2019-12-12 06:25:21 -08:00
Catena cyber 8fb7e6a4ff [binutils] Adds project binutils (#2617)
* Adds project binutils

With only one target for now

* nit define constant as macro

* Adds binutils patch against memory leaks

* Updates rebased patch

* Patch fixing binutils
2019-10-14 08:53:02 -07:00