Commit Graph

34 Commits

Author SHA1 Message Date
Jose E. Marchesi 133509fa40 Use -fPIC instead of -fpic when generating PIC code.
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 <jose.marchesi@oracle.com>
2015-10-06 23:40:19 +02:00
Mark Wielaard 1ccdfb683a Remove old-style function definitions.
We already require -std=gnu99 and old-style function definitions might
hide some compiler warnings.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
2015-09-23 15:50:55 +02:00
Mark Wielaard 170f1bb0a8 Fix sanitize-undefined config check. Don't ALLOW_UNALIGNED when checking.
The -fsanitize=undefined check need to use AC_LINK_IFELSE to make sure
libubsan is installed. When doing undefined checking we should disable
ALLOW_UNALIGNED memory accesses to catch issues where we do unaligned
accesses by accident.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
2015-06-05 14:52:29 +02:00
Max Filippov bafacacaf7 Allow disabling symbol versioning at configure time
Due to missing symbol versioning support in uClibc calls to versioned
functions that internally call different version of themselves results
in infinite recursion.

Introduce macro SYMBOL_VERSIONING and use it instead of plain SHARED to
decide whether symbol versioning is needed. Control this macro
definition with new configure option --disable-symbol-versioning.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
2015-04-23 21:39:41 +02:00
Lei Zhang dca862bff9 lib: Add missing config.h #include to crc32_file.c.
Without config.h, there is no possibility of large file support.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
2014-01-17 13:35:47 +01:00
Josh Stone b47e28a743 lib: Avoid the hash-lookup division if possible
For Dwarf_Abbrev codes, the most common case is that they're packed at
the low end, saving uleb128 encoding size.  Since the hash table is
always resized to be no more than 90% full, those codes are always less
than the table size, and dividing for the remainder is unnecessary.

Dwarf_Dies are frequently created anew, and need to find abbrev each
time, so even that one division becomes a noticeable hotspot.  This
patch adds a branch to avoid it, which is very predictable for the CPU.

Signed-off-by: Josh Stone <jistone@redhat.com>
2013-12-13 09:48:07 -08:00
Jan Kratochvil fba1588ee4 New macro COMPAT_VERSION_NEWPROTO.
lib/
	* eu-config.h (COMPAT_VERSION_NEWPROTO): New.  Twice.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
2013-04-30 14:25:18 +02:00
Jan Kratochvil 1704baf676 Unify {BE,LE}{32,64} in lib/system.h.
lib/
	* system.h (LE64, BE64): Move here the definitions from
	libdwfl/link_map.c.

libdwfl/
	* link_map.c (BE32, BE64, LE32, LE64): Delete the definitions, move
	them to lib/system.h.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
2013-04-26 17:00:50 +02:00
Mark Wielaard cdaaf2153a Updates for Automake 1.13.
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.
2013-04-26 10:06:08 +02:00
Adam Markey 6a1ed3836d Handle partial read or write.
Ran into a situation where pread was returning less data than requested for
remote files on a networked filesystem. This patch modifies the IO wrappers
to request the remaining data as long as no real errors occured.

Signed-off-by: Adam Markey <adam@etinternational.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
2012-10-10 10:56:42 +02:00
Jan Kratochvil 1d67c0c87a lib/
system.h (eu_static_assert): New macro.

libdw/
cfi.c: New include system.h.
(execute_cfi) (enough_registers): Clear new memory after realloc.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
2012-10-08 23:51:31 +02:00
Mark Wielaard de2ed97f33 Update name, license and contributor policy.
* 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 <rfontana@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
2012-06-05 23:12:05 +02:00
Mark Wielaard 5128fb4487 Remove .mtn-ignore and .cvsignore files.
We use .gitignore these days.
2012-06-05 14:55:29 +02:00
Ulrich Drepper c6b3d0c278 Color code output of nm and objdump 2012-01-21 18:14:39 -05:00
Ulrich Drepper b4a16cf0c6 Add demangling support to nm 2011-10-02 08:33:19 -04:00
Roland McGrath 32899ac4f6 Clean up byte order handling in md5 and sha1 code. 2011-07-09 03:17:24 -07:00
Roland McGrath 3e0f7d1d1b Handle reading .debug_types section. 2010-06-16 12:11:03 -07:00
Roland McGrath 22359e2653 Clean up and consolidate automake magic to reduce duplication and to work with --disable-dependency-tracking. 2010-02-15 15:57:03 -08:00
Roland McGrath ebfb6484d5 New macros for symbol versioning definitions, use them for libdw convenience wrappers just changed. 2009-08-09 15:40:52 -07:00
Roland McGrath e74f911bee Add multiple inclusion protection to eu-config.h 2009-01-23 17:11:04 -08:00
Ulrich Drepper fdc93e12a7 Move argp_program_version_hook and argp_program_bug_address variables
in all programs into the .rodata section.
2009-01-17 11:47:10 -08:00
Ulrich Drepper 7e678fa3f6 Require __thread support in compiler.
Rename --enable-tls to more appropriate --enable-thread-safety.
2009-01-10 18:02:05 -08:00
Roland McGrath b4d6f0f806 Fix up bogon and missing log entries from .pmachata.threads branch. 2008-08-25 22:55:17 +00:00
Ulrich Drepper c54785af87 Implement SHA1 build-id handling in ld. 2008-02-01 18:05:21 +00:00
Ulrich Drepper 16303e8228 Add missing files. 2008-02-01 02:19:56 +00:00
Ulrich Drepper 89759c76ee Implement --build-id command line parameter for ld. 2008-01-31 19:44:12 +00:00
Ulrich Drepper 1e9ef50681 Fix FSF address. No exception for libdwarf. 2006-04-04 22:29:06 +00:00
Ulrich Drepper aded5309ba Remove exception grant from lib/x*c files. Don't build xstrdup. 2006-04-04 21:56:13 +00:00
Ulrich Drepper 361df7da6d propagate from branch 'com.redhat.elfutils.roland.pending' (head 4f8fc821345feef58624f0aa5b470d4827577d8c)
to branch 'com.redhat.elfutils' (head 76e26cb54695fd3b21ee8fb5be3036bd68200633)
2006-04-04 21:38:57 +00:00
Ulrich Drepper fbe998a0b1 merge of 333c187506c852455e9f7be44fa9adc360416217
and 79955b942e3f0ddc71117feea5754df61edcc42a
2005-08-29 16:27:10 +00:00
Roland McGrath 4c305da9de 2005-08-24 Roland McGrath <roland@redhat.com>
* line2addr.c (print_address): Omit () for DSOs.
2005-08-25 01:49:35 +00:00
Ulrich Drepper 6abe27be71 Fix more EINTR handling problems. Add jump prediction. 2005-08-29 06:25:06 +00:00
Ulrich Drepper 47be795df3 Implement --enable-gprof option in configure script. 2005-08-07 04:41:39 +00:00
Ulrich Drepper b08d5a8fb4 Adjust for monotone. 2005-07-26 05:00:05 +00:00