summaryrefslogtreecommitdiffstats
path: root/libcpu
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'elfutils-0.170'Ulf Hermann2017-08-173-9/+8
|\ | | | | | | | | | | elfutils 0.170 release Change-Id: I37d03645902b9f0a9fb708af1551db8843537799
| * backends: Don't depend on linux/bpf.h to compile bpf disassembler.Mark Wielaard2017-07-243-8/+7
| | | | | | | | | | | | | | | | | | We only need a few constants and one structure definition from linux/bpf. Just define those in a local lib/bpf.h file. This makes sure the bpf disassembler is always build and included even when elfutils is build on older GNU/Linux systems (and even on other platforms). Signed-off-by: Mark Wielaard <[email protected]>
| * Add EXEEXT to gendisUlf Hermann2017-04-262-3/+7
| | | | | | | | | | | | | | Otherwise the build will fail on systems that actually need file extension for executables. Signed-off-by: Ulf Hermann <[email protected]>
| * Don't use comparison_fn_tUlf Hermann2017-04-262-2/+6
| | | | | | | | | | | | Not all search.h declare it, and it is not very helpful anyway. Signed-off-by: Ulf Hermann <[email protected]>
* | Workaround compiler not seeing assert(false)Ulf Hermann2017-05-081-0/+1
| | | | | | | | | | Change-Id: I6ea2f6f6684ce1df10c7008ad4a894c9205a267c Reviewed-by: Christian Kandeler <[email protected]>
* | Make sure packed structs follow the gcc memory layoutUlf Hermann2017-05-021-1/+1
| | | | | | | | | | | | | | | | On windows gcc by default generates code that follows the MSVC layout. We don't want that as it adds extra padding. Change-Id: I92efe5da2a2ad818783707ee96a9b8e0eb606dbd Reviewed-by: Christian Kandeler <[email protected]>
* | Check if we need -lintl for linking gettextUlf Hermann2017-04-281-1/+1
| | | | | | | | | | | | | | | | We might not have gettext available from libc and we cannot get it from gnulib either. Change-Id: I1cc657b13b97bcc7c0f158f11b6702c24e69695c Reviewed-by: Christian Kandeler <[email protected]>
* | Check for -z,defs, -z,relro, -fPIC, -fPIE before using themUlf Hermann2017-04-282-1/+5
| | | | | | | | | | | | | | | | | | On windows those aren't needed because the link results are no ELF files and all code is position independent anyway. gcc then complains about them, which is in turn caught by -Werror. Change-Id: Ie3d600b7c430698fc3d867a986a4d48f7ad1bbec Reviewed-by: Christian Kandeler <[email protected]>
* | Add gnulib modules to replace missing libc functionalityUlf Hermann2017-04-272-1/+11
| | | | | | | | | | | | | | | | | | | | This enables us to build a fully featured elfutils package on systems with reduced C libraries, such as windows. All the modules are built into libgnu.a, which is then linked into all binaries if --enable-gnulib is given on the configure line. Change-Id: I743fd22172bc85d9f10dcc3dad8eb921f462b554 Reviewed-by: Christian Kandeler <[email protected]>
* | Add EXEEXT to gendisUlf Hermann2017-04-272-3/+7
| | | | | | | | | | | | | | | | Otherwise the build will fail on systems that actually need file extension for executables. Change-Id: Ief8daaf158182089aa65a9fd693b43c1f4cae9fb Reviewed-by: Christian Kandeler <[email protected]>
* | Don't use comparison_fn_tUlf Hermann2017-04-212-2/+6
|/ | | | | | | Not all search.h declare it, and it is not very helpful anyway. Change-Id: Icd3439175048b25058507dd5ec657b5680b82bb2 Reviewed-by: Christian Kandeler <[email protected]>
* Add GCC7 -Wimplicit-fallthrough support/fixes.Mark Wielaard2016-11-102-2/+6
| | | | | | | | | | | GCC7 will have a new -Wimplicit-fallthrough warning. It did catch one small buglet in elflint option procession. So it seems useful to enable to make sure all swatch case fallthroughs are deliberate. Add configure check to detect whether gcc support -Wimplicit-fallthrough and enable it. Add fixes and explicit fallthrough comments where necessary. Signed-off-by: Mark Wielaard <[email protected]>
* lib: Provide MAX and MIN in system.hAkihiko Odaki2016-10-124-3/+8
| | | | | | | | | | This change also creates a new header file libeu.h to provide the prototypes for the function of libeu. That hides the definition of function crc32, which can conflict with zlib, from libelf. It also prevents mistakes to refer those functions from a component which doesn't link with libeu, such as libelf. Signed-off-by: Akihiko Odaki <[email protected]>
* libcpu: Fix build of bpf_disasm.c for kernels < 3.20.Mark Wielaard2016-09-052-0/+8
| | | | | | | Before linux 3.20 the BPF_PSEUDO_MAP_FD constant wasn't defined. Reported-by: Julian Ospald <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* Fix bpf disassembler for _FORTIFY_SOURCERichard Henderson2016-08-112-174/+372
| | | | | | | | It's illegal to skip positional operands for printf. Rearrange the printing of the instructions to use exactly the operands required. Also, fix printing of mod operations: s/%/%%/ in the print format. Also, fix printing of endian operations: remove extra spaces.
* Add support for BPFRichard Henderson2016-06-284-1/+303
| | | | Signed-off-by: Richard Henderson <[email protected]>
* Improve AM_SILENT_RULES coverageJosh Stone2015-10-062-5/+11
| | | | | | | | | | | Note, elfutils does not explicitly enable AM_SILENT_RULES. It's only available starting from automake 1.11, but starting from automake 1.13 silent rules are always generated, defaulting to verbose. $(AM_V_foo) additions should be no-ops on systems that don't support silent rules. To be silent, use "./configure --enable-silent-rules" or "make V=0". Signed-off-by: Josh Stone <[email protected]>
* Use -fPIC instead of -fpic when generating PIC code.Jose E. Marchesi2015-10-062-1/+6
| | | | | | | This avoids relocation overflows in sparc/sparc64 targets while linking, where the reachable data using -fpic is only 4kb. Signed-off-by: Jose E. Marchesi <[email protected]>
* Remove mudflap build option.Mark Wielaard2014-04-182-1/+5
| | | | | | | | | The --enable-mudflap configure build has been broken for 2 years without anybody apparently noticing. GCC 4.9 removed mudflap support. Before release we now run make distcheck with valgrind support. Removal of the mudflap configure option simplifies the build a little. Signed-off-by: Mark Wielaard <[email protected]>
* Updates for Automake 1.13.Mark Wielaard2013-04-262-1/+5
| | | | | | | autoreconf will install config/test-driver, ignore it. Update gettext m4 and po files to version 0.18.2. Use AM_CPPFLAGS instead of INCLUDES. All changes are backward compatible with Automake 1.11.
* Robustify makefile redirection use.Roland McGrath2012-10-102-2/+9
|
* Add a rule to make build failure w/o --enable-maintainer-mode clearer.Roland McGrath2012-06-262-1/+12
|
* Update name, license and contributor policy.Mark Wielaard2012-06-058-125/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change name from "Red Hat elfutils" to "elfutils". * Update license of standalone tools and test from GPLv2 to GPLv3+. * Change license of libraries from GPLv2+exception to GPLv2/LGPLv3+. * Add Developer Certificate of Origin based contributor policy. top-level: - COPYING: Upgraded from GPLv2 to GPLv3. - CONTRIBUTING, COPYING-GPLv2, COPYING-LGPLv3: New files. - NEWS: Added note about new contribution and license policy. - Makefile.am: Updated to GPLv3, added new files to EXTRA_DIST. - configure.ac: Update to GPLv3, changed AC_INIT name to 'elfutils'. backends, lib, libasm, libcpu, libdw, libdwfl, libebl, libelf: - All files updated to GPLv2/LGPLv3+. Except some very small files (<5 lines) which didn't have any headers at all before, the linker .maps files and the libcpu/defs files which only contain data and libelf/elf.h which comes from glibc and is under LGPLv2+. config: - elfutils.spec.in: Add new License: headers and new %doc files. - Update all license headers to GPLv2/LGPLv3+ for files used by libs. src, tests: - All files updated to GPLv3+. Except for the test bz2 data files, the linker maps and script files and some very small files (<5 lines) that don't have any headers. Signed-off-by: Richard Fontana <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* Remove .mtn-ignore and .cvsignore files.Mark Wielaard2012-06-051-1/+0
| | | | We use .gitignore these days.
* libcpu Makefile.am, move %_dis.h from CLEANFILES to MAINTAINERCLEANFILES.Mark Wielaard2012-02-242-1/+7
|
* Color code output of nm and objdumpUlrich Drepper2012-01-212-5/+102
|
* Include *_dis.h headers in dist; generate them only for ↵Roland McGrath2011-10-162-9/+21
| | | | --enable-maintainer-mode.
* Clean up libcpu makefile rules for better error detection.Roland McGrath2010-08-162-9/+15
|
* Clean up and consolidate automake magic to reduce duplication and to work ↵Roland McGrath2010-02-152-18/+10
| | | | with --disable-dependency-tracking.
* Nominal ARM support.Roland McGrath2009-04-152-0/+6
|
* Use quotes around command substitution that can produce leading whitespace.Roland McGrath2009-01-232-2/+7
|
* Optimize x86/x86-64 disassembler tables.Ulrich Drepper2009-01-013-11/+44
|
* Add Intel SSE4 support to disassembler.Ulrich Drepper2009-01-013-2/+63
|
* Replay output operations correctly when internal buffer in x86/x86-64Ulrich Drepper2008-12-312-24/+40
| | | | disasembler code is full.
* Slightly better formatting in generating disassembly data.Ulrich Drepper2008-12-311-1/+1
|
* Optimize x86/x86-64 disassembler some more. Avoid relocations for stringUlrich Drepper2008-12-313-7/+41
| | | | table.
* Fix printing of rex prefix in x86-64 disassembler.Ulrich Drepper2008-12-312-0/+20
|
* Optimize x86/x86-64 disassembler a bit.Ulrich Drepper2008-12-313-16/+18
|
* Mark constant array as const.Ulrich Drepper2008-12-312-1/+3
|
* Implement blendvpd and blendvps opcodes in x86/x86-64 disassembler.Ulrich Drepper2008-12-312-0/+6
|
* Implement blendps opcode for x86/x86-64.Ulrich Drepper2008-12-302-1/+2
|
* Implement disassembly of blendpd instruction for x86/x86-64.Ulrich Drepper2008-12-302-0/+5
|
* Implement AMD 3DNOW disassembly.Ulrich Drepper2008-12-193-0/+91
|
* .Ulrich Drepper2008-12-171-0/+5
|
* (i386_disasm): If instruction matches prefix, undoing the prefix matchUlrich Drepper2008-12-171-3/+1
| | | | finishes the instruction.
* Fix problems in last checkin.Ulrich Drepper2008-01-221-0/+4
|
* propagate from branch 'com.redhat.elfutils.roland.pending' (head ↵Ulrich Drepper2008-01-223-1/+14
| | | | | | 6b4ecd4bacd23aaea4922adc10aab7908c45d23e) to branch 'com.redhat.elfutils' (head 80a9de86977a1031c60888fe4072688434a961be)
* merge of '33d6cda327b8cb82fe8be29c24addb2bdf40acff'Ulrich Drepper2008-01-223-2/+15
| | | | and '4f7c8e6f95ff49761dd62bf932f09597f5838ab8'
* Update copyright year.Ulrich Drepper2008-01-213-15/+2
|
* explicit merge of 'f9dc98cac1b8ccd38e7420c43dfe7551e2923aaa'elfutils-0.132Roland McGrath2008-01-222-1/+5
| | | | and '90e87946af64cdaa0fc75d344ca35ee2729e655d'