* config/obj-elf.c (obj_elf_ident): Call md_flush_pending_output
if it is defined. * config/obj-elf.c (elf_set_index): Add ATTRIBUTE_UNUSED. * config/obj-elf.c (elf_frob_file_after_relocs): Don't pass NULL to bfd_set_section_contents.
This commit is contained in:
parent
829ce3071e
commit
5f91fe03ba
|
@ -1,3 +1,13 @@
|
||||||
|
1999-11-03 Ian Lance Taylor <ian@zembu.com>
|
||||||
|
|
||||||
|
* config/obj-elf.c (obj_elf_ident): Call md_flush_pending_output
|
||||||
|
if it is defined.
|
||||||
|
|
||||||
|
* config/obj-elf.c (elf_set_index): Add ATTRIBUTE_UNUSED.
|
||||||
|
|
||||||
|
* config/obj-elf.c (elf_frob_file_after_relocs): Don't pass NULL
|
||||||
|
to bfd_set_section_contents.
|
||||||
|
|
||||||
1999-11-03 Nick Clifton <nickc@cygnus.com>
|
1999-11-03 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
* config/tc-mcore.h (TARGET_BYTES_BIG_ENDIAN): Change to false.
|
* config/tc-mcore.h (TARGET_BYTES_BIG_ENDIAN): Change to false.
|
||||||
|
|
|
@ -1373,6 +1373,10 @@ obj_elf_ident (ignore)
|
||||||
segT old_section = now_seg;
|
segT old_section = now_seg;
|
||||||
int old_subsection = now_subseg;
|
int old_subsection = now_subseg;
|
||||||
|
|
||||||
|
#ifdef md_flush_pending_output
|
||||||
|
md_flush_pending_output ();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!comment_section)
|
if (!comment_section)
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
|
@ -1493,8 +1497,8 @@ elf_get_extr (sym, ext)
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
static void
|
static void
|
||||||
elf_set_index (sym, indx)
|
elf_set_index (sym, indx)
|
||||||
asymbol *sym;
|
asymbol *sym ATTRIBUTE_UNUSED;
|
||||||
bfd_size_type indx;
|
bfd_size_type indx ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1705,7 +1709,11 @@ elf_frob_file_after_relocs ()
|
||||||
this? */
|
this? */
|
||||||
sec->_raw_size = bfd_ecoff_debug_size (stdoutput, &debug, debug_swap);
|
sec->_raw_size = bfd_ecoff_debug_size (stdoutput, &debug, debug_swap);
|
||||||
|
|
||||||
if (! bfd_set_section_contents (stdoutput, sec, (PTR) NULL,
|
/* Pass BUF to bfd_set_section_contents because this will
|
||||||
|
eventually become a call to fwrite, and ISO C prohibits
|
||||||
|
passing a NULL pointer to a stdio function even if the
|
||||||
|
pointer will not be used. */
|
||||||
|
if (! bfd_set_section_contents (stdoutput, sec, (PTR) buf,
|
||||||
(file_ptr) 0, (bfd_size_type) 0))
|
(file_ptr) 0, (bfd_size_type) 0))
|
||||||
as_fatal (_("Can't start writing .mdebug section: %s"),
|
as_fatal (_("Can't start writing .mdebug section: %s"),
|
||||||
bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
|
|
Loading…
Reference in New Issue