Yet another architecture

Ulrich Drepper drepper@redhat.com
Sat Oct 14 14:16:00 GMT 2000


schwidefsky@de.ibm.com writes:

> >I guess you could test for e_machine[EI_CLASS].  I'm not sure what
> >problems to expect down the road.  MIPS seems not to have a new EM_*
> >constant for their 64-bit architecture but everybody else does.
> 
> I would have to modify the prototype for elf_machine_matches_host. This has
> an impact on all architectures. Or is there a global array I could use ?

That's not too much of a problem.  The function is always inlined.  In
case the extra parameter is not needed it'll be ignored and not even
loaded.

Only requirement: you provide a patch for all architectures.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-hacker mailing list