mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:21:35 +08:00
* elf.c (prep_headers): Use new EM_SPARCV9 symbol.
* elf64-sparc.c (ELF_MACHINE_CODE): Likewise. (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
|
* elf.c (prep_headers): Use new EM_SPARCV9 symbol.
|
||||||
|
* elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
|
||||||
|
(ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
|
||||||
|
|
||||||
Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
|
Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
|
* configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
|
||||||
|
12
bfd/elf.c
12
bfd/elf.c
@ -2855,7 +2855,7 @@ prep_headers (abfd)
|
|||||||
break;
|
break;
|
||||||
case bfd_arch_sparc:
|
case bfd_arch_sparc:
|
||||||
if (bed->s->arch_size == 64)
|
if (bed->s->arch_size == 64)
|
||||||
i_ehdrp->e_machine = EM_SPARC64;
|
i_ehdrp->e_machine = EM_SPARCV9;
|
||||||
else
|
else
|
||||||
i_ehdrp->e_machine = EM_SPARC;
|
i_ehdrp->e_machine = EM_SPARC;
|
||||||
break;
|
break;
|
||||||
@ -3274,10 +3274,12 @@ _bfd_elf_copy_private_section_data (ibfd, isec, obfd, osec)
|
|||||||
{
|
{
|
||||||
asection *s;
|
asection *s;
|
||||||
|
|
||||||
/* Only set up the segments when all the sections have been set
|
/* Only set up the segments if there are no more SEC_ALLOC
|
||||||
up. */
|
sections. FIXME: This won't do the right thing if objcopy is
|
||||||
for (s = ibfd->sections; s != NULL; s = s->next)
|
used to remove the last SEC_ALLOC section, since objcopy
|
||||||
if (s->output_section == NULL)
|
won't call this routine in that case. */
|
||||||
|
for (s = isec->next; s != NULL; s = s->next)
|
||||||
|
if ((s->flags & SEC_ALLOC) != 0)
|
||||||
break;
|
break;
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user