mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
* elfcode.h: Don't include assert.h.
(swap_out_syms): Use BFD_ASSERT rather than assert.
This commit is contained in:
@ -59,7 +59,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
symbols.
|
symbols.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
#include <string.h> /* For strrchr and friends */
|
#include <string.h> /* For strrchr and friends */
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
@ -2207,9 +2206,9 @@ swap_out_syms (abfd)
|
|||||||
section of a symbol to be a section that is actually in
|
section of a symbol to be a section that is actually in
|
||||||
the output file. */
|
the output file. */
|
||||||
sec2 = bfd_get_section_by_name (abfd, sec->name);
|
sec2 = bfd_get_section_by_name (abfd, sec->name);
|
||||||
assert (sec2 != 0);
|
BFD_ASSERT (sec2 != 0);
|
||||||
sym.st_shndx = shndx = elf_section_from_bfd_section (abfd, sec2);
|
sym.st_shndx = shndx = elf_section_from_bfd_section (abfd, sec2);
|
||||||
assert (shndx != -1);
|
BFD_ASSERT (shndx != -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user