Commit Graph

10 Commits

Author SHA1 Message Date
Richard Hughes
3cca1c65c2 trivial: Remove or downgrade some superfluous warnings
Fixes bugs like https://github.com/hughsie/fwupd/issues/159
2017-07-21 13:38:27 +01:00
Richard Hughes
c3c50fba4c libdfu: Fix a crash if elf32_newehdr() fails 2017-07-21 13:07:00 +01:00
Richard Hughes
b53ad36012 trivial: Fix up a number of FALSE/NULL return issues 2017-06-19 13:50:42 +01:00
Mario Limonciello
ca9dadcc52 trivial: move gelf.h include to HAVE_LIBELF (#87) 2017-02-14 11:09:46 -06:00
Kai Krakow
1c7ea9ee2d Fix compiler warnings
My compiler doesn't understand -Wno-discard-qualifiers so drop it and
fix the warnings instead. I think it is better to explicitly fix them
anyways instead of just to ignore the discarded const qualifier in
general.

I think the option should be avoided in hand-written code. The warning
is there for a reason: To protect you from possibly overwriting data you
expect to not be modified when passing pointers around.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41215
2017-02-13 10:02:25 +00:00
Richard Hughes
1deda31cae Make libelf support optional 2016-11-22 15:39:57 +00:00
Richard Hughes
633944045f Load the symbol table from ELF firmware 2016-09-03 16:59:02 +01:00
Richard Hughes
bf59e265bc Write the ELF files with the correct section type
This should fix a compile failure on s390x.

Resolves: https://github.com/hughsie/fwupd/issues/63
2016-08-31 10:30:48 +01:00
Richard Hughes
c7aea294b7 trivial: Parse the .interrupt section in the .elf file too 2016-08-31 09:03:53 +01:00
Richard Hughes
3667ee7b22 libdfu: Add initial ELF reading and writing support 2016-08-26 18:44:00 +01:00