This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

hppaelf_set_output_arch()


Hi,

ld/emultempl/hppaelf.em defines its own ldemul_set_output_arch() function:

/* Set the output architecture and machine.  */

static void
hppaelf_set_output_arch ()
{
  unsigned long machine = 0;

  bfd_set_arch_mach (output_bfd, ldfile_output_architecture, machine);
}

Is there any good reason why it does this?  The effect of this
function is to force output_bfd->arch_info to the default architecture
(hppa1.0 for ELF32 or hppa2.0w for ELF64, presumably) no matter what the
configuration script or the input BFDs contain.

Since ldfile_set_output_arch will already pick the default if none was
specified, I don't really see the point of this, and it prevents me
from, say, defining MACHINE=hppa1.1 as the default architecture level
in hppalinux.sh (which may be a good idea since GNU/Linux on PA-RISC
will not support PA1.0 processors).

-- 
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]