On 11.04.2008 [14:28:46 -0700], Eric B Munson wrote:
> Building on IA64 currently fails because elflink is not supported.  This patch
> sets up a NO_ELFLINK define in the IA64 section of the Makefile and a check
> in setup_libhugetlbfs that will skip the elflink calls on IA64.

Hrm, if you do this, the same thing is going to be needed in the sparc64
section. Really, you should look to modify the ELF32/ELF64 defines to do
the right thing on ia64/sparc64. I think we just skip building elflink.o
for both because we don't define either of those macros.

I haven't spent much time with the ia64 port lately, but perhaps just
look at partially reverting/fixing
1a6b1d79ad0a8709b6f618b29a5e8e3817fdc2d3 and
1a08255830989e76bbfd51f58e332d545871eef2, which are the two patches that
make the Makefile the way it is.

Thanks,
Nish

> Signed-off-by: Eric Munson <[EMAIL PROTECTED]>
> 
> ---
> 
>  Makefile |    1 +
>  init.c   |    2 ++
>  2 files changed, 3 insertions(+)
> 
> diff -upNr libhugetlbfs-1.3-pre1.orig/Makefile libhugetlbfs-1.3-pre1/Makefile
> --- libhugetlbfs-1.3-pre1.orig/Makefile       2008-04-11 13:38:54.000000000 
> -0700
> +++ libhugetlbfs-1.3-pre1/Makefile    2008-04-11 14:00:24.000000000 -0700
> @@ -52,6 +52,7 @@ else
>  ifeq ($(ARCH),ia64)
>  CC64 = gcc
>  LIB64 = lib64
> +CFLAGS += -DNO_ELFLINK
>  else
>  ifeq ($(ARCH),sparc64)
>  CC64 = gcc -m64
> diff -upNr libhugetlbfs-1.3-pre1.orig/init.c libhugetlbfs-1.3-pre1/init.c
> --- libhugetlbfs-1.3-pre1.orig/init.c 2008-04-11 13:38:54.000000000 -0700
> +++ libhugetlbfs-1.3-pre1/init.c      2008-04-11 14:02:12.000000000 -0700
> @@ -22,6 +22,8 @@
>  static void __attribute__ ((constructor)) setup_libhugetlbfs(void)
>  {
>       __hugetlbfs_setup_debug();
> +#ifndef NO_ELFLINK
>       __hugetlbfs_setup_elflink();
> +#endif
>       __hugetlbfs_setup_morecore();
>  }
> 



> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Libhugetlbfs-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


-- 
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to