mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
Minor formatting improvements.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jul 1 16:29:50 1998 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
|
* objcopy.c: Minor formatting improvements.
|
||||||
|
* readelf.c: Minor output formatting improvement.
|
||||||
|
|
||||||
Wed Jul 1 14:23:48 1998 Ian Lance Taylor <ian@cygnus.com>
|
Wed Jul 1 14:23:48 1998 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* rclex.l: Add casts and change types to avoid warnings.
|
* rclex.l: Add casts and change types to avoid warnings.
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
#include "budbg.h"
|
#include "budbg.h"
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#include "elf/internal.h"
|
||||||
|
#include "elf-bfd.h"
|
||||||
|
|
||||||
#ifdef HAVE_GOOD_UTIME_H
|
#ifdef HAVE_GOOD_UTIME_H
|
||||||
#include <utime.h>
|
#include <utime.h>
|
||||||
#else /* ! HAVE_GOOD_UTIME_H */
|
#else /* ! HAVE_GOOD_UTIME_H */
|
||||||
@ -648,10 +651,11 @@ copy_object (ibfd, obfd)
|
|||||||
|
|
||||||
if (isympp)
|
if (isympp)
|
||||||
free (isympp);
|
free (isympp);
|
||||||
|
|
||||||
if (osympp != isympp)
|
if (osympp != isympp)
|
||||||
free (osympp);
|
free (osympp);
|
||||||
|
|
||||||
/* bfd mandates that all output sections be created and sizes set before
|
/* BFD mandates that all output sections be created and sizes set before
|
||||||
any output is done. Thus, we traverse all sections multiple times. */
|
any output is done. Thus, we traverse all sections multiple times. */
|
||||||
bfd_map_over_sections (ibfd, setup_section, (void *) obfd);
|
bfd_map_over_sections (ibfd, setup_section, (void *) obfd);
|
||||||
|
|
||||||
@ -902,6 +906,7 @@ copy_object (ibfd, obfd)
|
|||||||
now = 8192;
|
now = 8192;
|
||||||
else
|
else
|
||||||
now = left;
|
now = left;
|
||||||
|
|
||||||
if (! bfd_set_section_contents (obfd, osections[i], buf,
|
if (! bfd_set_section_contents (obfd, osections[i], buf,
|
||||||
off, now))
|
off, now))
|
||||||
RETURN_NONFATAL (bfd_get_filename (obfd));
|
RETURN_NONFATAL (bfd_get_filename (obfd));
|
||||||
@ -1124,6 +1129,7 @@ setup_section (ibfd, isection, obfdarg)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
osection = bfd_make_section_anyway (obfd, bfd_section_name (ibfd, isection));
|
osection = bfd_make_section_anyway (obfd, bfd_section_name (ibfd, isection));
|
||||||
|
|
||||||
if (osection == NULL)
|
if (osection == NULL)
|
||||||
{
|
{
|
||||||
err = "making";
|
err = "making";
|
||||||
|
@ -1640,7 +1640,7 @@ process_section_headers (file)
|
|||||||
|
|
||||||
printf (_("\nSection Header%s:\n"), elf_header.e_shnum > 1 ? "s" : "");
|
printf (_("\nSection Header%s:\n"), elf_header.e_shnum > 1 ? "s" : "");
|
||||||
printf
|
printf
|
||||||
(_(" [Nr] Name Type Addr Off Size ES Flg Lk In Al\n"));
|
(_(" [Nr] Name Type Addr Off Size ES Flg Lk Inf Al\n"));
|
||||||
|
|
||||||
for (i = 0, section = section_headers;
|
for (i = 0, section = section_headers;
|
||||||
i < elf_header.e_shnum;
|
i < elf_header.e_shnum;
|
||||||
|
Reference in New Issue
Block a user