This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: Yet another architecture


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   `------------------------

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