diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-02-01 19:06:10 -0800 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-02-01 19:06:10 -0800 |
commit | 95fa15e7b3af7321dc70dc453eb9cb0596b5a817 (patch) | |
tree | 495c21798e2a32b7951291716f8b14b63fa7ee3d /libebl | |
parent | cbb422eb102660d97209ec632e3b6572f0b0c7a6 (diff) | |
download | elfutils-95fa15e7b3af7321dc70dc453eb9cb0596b5a817.tar.gz |
Reduce common code in objdump.
Better error value on ebl_reloc_type_name.
Diffstat (limited to 'libebl')
-rw-r--r-- | libebl/ChangeLog | 5 | ||||
-rw-r--r-- | libebl/eblreloctypename.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog index 51b3b705..f1ba346a 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,8 @@ +2009-02-01 Ulrich Drepper <drepper@redhat.com> + + * eblreloctypename.c (ebl_reloc_type_name): Return "<INVALID RELOC>" + instead of "???" for invalid relocations. + 2008-08-01 Roland McGrath <roland@redhat.com> * eblcorenotetypename.c: Handle NT_386_IOPERM. diff --git a/libebl/eblreloctypename.c b/libebl/eblreloctypename.c index c715b064..3f2c7d9c 100644 --- a/libebl/eblreloctypename.c +++ b/libebl/eblreloctypename.c @@ -1,5 +1,5 @@ /* Return relocation type name. - Copyright (C) 2001, 2002 Red Hat, Inc. + Copyright (C) 2001, 2002, 2009 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper <drepper@redhat.com>, 2001. @@ -68,7 +68,7 @@ ebl_reloc_type_name (ebl, reloc, buf, len) res = ebl != NULL ? ebl->reloc_type_name (reloc, buf, len) : NULL; if (res == NULL) /* There are no generic relocation type names. */ - res = "???"; + res = "<INVALID RELOC>"; return res; } |