mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* make headers_install headers problem on sparc64
@ 2006-10-18 22:37 andrew
  2006-10-19  7:50 ` David Woodhouse
  2006-10-19 10:54 ` andrew
  0 siblings, 2 replies; 9+ messages in thread
From: andrew @ 2006-10-18 22:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: dwmw2

Hi david, lkml.

I found a message where you said

"If you have problems with the exported headers (other
than that some userspace abuses headers which it shouldn't), then
_shout_. Please don't just let them go unreported."

So,

Using headers exported from vanilla linux 2.6.18.1 and compiling the
elftoaout part of the debian sparc-utils package, I get some breakage
here:

In file included from /usr/include/asm/elf.h:5,
                 from /usr/include/linux/elf.h:7,
                 from elftoaout.c:24:

due to tlb_type, cheetah et al being undefined in this part of
asm-sparc64/elf.h:


bash-3.1# tail -n30 /pkg/linux/include/asm-sparc64/elf.h

/* This yields a mask that user programs can use to figure out what
   instruction set this cpu supports.  */

/* On Ultra, we support all of the v8 capabilities. */
static __inline__ unsigned int sparc64_elf_hwcap(void)
{
        unsigned int cap = (HWCAP_SPARC_FLUSH | HWCAP_SPARC_STBAR |
                            HWCAP_SPARC_SWAP | HWCAP_SPARC_MULDIV |
                            HWCAP_SPARC_V9);

        if (tlb_type == cheetah || tlb_type == cheetah_plus)
                cap |= HWCAP_SPARC_ULTRA3;
        else if (tlb_type == hypervisor)
                cap |= HWCAP_SPARC_BLKINIT;

        return cap;
}

#define ELF_HWCAP       sparc64_elf_hwcap();

/* This yields a string that ld.so will use to load implementation
   specific libraries for optimization.  This is more specific in
   intent than poking at uname or /proc/cpuinfo.  */

#define ELF_PLATFORM    (NULL)


#endif /* !(__ASM_SPARC64_ELF_H) */



Hope this is useful

Andrew Walrond

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-12-30 10:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-18 22:37 make headers_install headers problem on sparc64 andrew
2006-10-19  7:50 ` David Woodhouse
2006-10-19  9:03   ` andrew
2006-10-19 10:54 ` andrew
2006-10-19 11:10   ` andrew
2006-10-19 11:34     ` David Woodhouse
2006-10-19 11:37       ` andrew
2006-10-19 11:43         ` David Woodhouse
2006-12-30 10:38       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®