This patch consolidates definitions of TARGET_LIBC_HAS_FUNCTION and 
TARGET_HAS_IFUNC_P hooks in linux.h from linux-android.h and uclinux.h files of 
various architectures.

One caveat to consolidating definitions in linux.h is that both *-linux-* and 
*-uclinux-* targets include config/linux.h, but *-uclinux-* targets then skip 
linux.opt, linux-protos.h and linux.c, which declare and define functions 
implementing target hooks.

Since we don't really want to add linux.opt and company to *-uclinux-* targets 
we check for "#if *-uclinux-*" in linux.h and define TARGET_LIBC_HAS_FUNCTION 
and TARGET_HAS_IFUNC_P separately for *-linux-* and for *-uclinux-*.

The patch series was tested on various Linux and uClinux targets including arm, 
bfin, c6x, m68k, mips, powerpc, x86, x86_64.

OK to apply?

Thanks,

--
Maxim Kuvyrkov
www.kugelworks.com


Attachment: 0004-Cleanup-definitions-of-libc-related-target-hooks.patch
Description: Binary data

Reply via email to