Avoid that gcc breaks UML with "unit at a time" compilation mode.
PATCH 1/1 Avoid that gcc breaks UML with "unit at a time" compilation mode.
Avoid that gcc breaks UML with "unit at a time" compilation mode; this patch is for 2.6. Please test it.
---
uml-Dike-linux-2.6.6-paolo/arch/um/Makefile | 2 ++ 1 files changed, 2 insertions(+)
diff -puN arch/um/Makefile~disable-UnitAtATime arch/um/Makefile
--- uml-Dike-linux-2.6.6/arch/um/Makefile~disable-UnitAtATime 2004-06-19
11:56:02.000000000 +0200
+++ uml-Dike-linux-2.6.6-paolo/arch/um/Makefile 2004-06-19 11:56:11.000000000
+0200
@@ -61,6 +61,8 @@ CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSU
-D_LARGEFILE64_SOURCE $(ARCH_INCLUDE) -Derrno=kernel_errno \
-Dsigprocmask=kernel_sigprocmask $(MODE_INCLUDE)
+CFLAGS += $(call check_gcc,-fno-unit-at-a-time,)
+
LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
# These are needed for clean and mrproper, since in that case .config is not
_
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
On Sat, 19 Jun 2004, BlaisorBlade mused:
Quoted 2 lines
Avoid that gcc breaks UML with "unit at a time" compilation mode; this patch is for 2.6. Please test it.
btw, I'd call this a workaround. Only a very few files --- that depend on the exact ordering of functions, variable declarations, or top-level asm blocks in the file --- should need it.
Eventually, non-unit-at-a-time mode will probably go away entirely.
Signature · 13 lines
`We in no way believe that this Christ was a space alien.'
--- A creationist website goes completely bonkers
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel