On 07.03.2007 [16:29:58 +1100], David Gibson wrote:
> Here's a revised version of my patch adding per-target syscall stubs
> to the library. This is now tested on x86_64.
>
> This patch adds a per-target module to the library, which can be used
> to hold any arch or target dependent code. It uses this module to
> provide a per-arch re-implementation of syscall(), which is used to
> (finally) provide reliable error messages from elflink.c if they occur
> while the program segments are unmapped.
This does break the sparc64 and ia64 builds, btw, and I need the
following on top. Another reason why I do prefer my original method of
having those variables to say we don't support something, since you're
now overloading the use of ELF{32,64}. Oh well.
I made a dummy elf64_sparc.S and am building the tests now (box is
slow).
I should also be able to try and test on ia64 tomorrow, I hope.
Note, that the the current versioning scheme resulted in an infinite
build loop, so I had to comment out those bits as well. Will look into
it more tomorrow.
Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
diff --git a/Makefile b/Makefile
index d3150ea..5103f48 100644
--- a/Makefile
+++ b/Makefile
@@ -71,8 +71,14 @@ ifdef CC64
OBJDIRS += obj64
endif
-LIBOBJS32 = $(LIBOBJS:%=obj32/%) obj32/$(ELF32).o
-LIBOBJS64 = $(LIBOBJS:%=obj64/%) obj64/$(ELF64).o
+LIBOBJS32 = $(LIBOBJS:%=obj32/%)
+ifdef ELF32
+LIBOBJS32 += obj32/$(ELF32).o
+endif
+LIBOBJS64 = $(LIBOBJS:%=obj64/%)
+ifdef ELF64
+LIBOBJS64 += $(LIBOBJS:%=obj64/%)
+endif
LIBDIR32 = $(PREFIX)/$(LIB32)
--
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel