diff options
author | Nick Clifton <nickc@redhat.com> | 2018-04-17 16:15:03 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2018-04-17 16:15:03 +0100 |
commit | 56d8f8a952f7565e8c2232ba57abb9f8d114ad70 (patch) | |
tree | cbedf18c2331221c66daa8011e18c290cf7d28f3 /binutils/readelf.c | |
parent | 6327533b1fd29fa86f6bf34e61c332c010e3c689 (diff) | |
download | gdb-56d8f8a952f7565e8c2232ba57abb9f8d114ad70.zip gdb-56d8f8a952f7565e8c2232ba57abb9f8d114ad70.tar.gz gdb-56d8f8a952f7565e8c2232ba57abb9f8d114ad70.tar.bz2 |
Remove an abort() from the readelf sources.
PR 26063
* readelf.c (print_symbol): If the width is zero, return straight
away.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index cf395db..528954c 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -515,7 +515,8 @@ print_symbol (signed int width, const char *symbol) width = - width; extra_padding = TRUE; } - assert (width != 0); + else if (width == 0) + return 0; if (do_wide) /* Set the remaining width to a very large value. |