[Title] Fix kernel compilation failure at gcc 4.6.0 or newer version
authorsyeon.hwang <syeon.hwang@samsung.com>
Thu, 8 Dec 2011 06:23:11 +0000 (15:23 +0900)
committersyeon.hwang <syeon.hwang@samsung.com>
Thu, 8 Dec 2011 06:23:11 +0000 (15:23 +0900)
[Type]
[Module] Emulator / Kernel
[Priority] Minor
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

arch/x86/vdso/Makefile

index 6b4ffedb93c9f62e2d65874c7d27ef056fd9e8b9..dd78ef687c5e1da0130a5c0d671ca51cd52a8f89 100644 (file)
@@ -25,7 +25,7 @@ targets += vdso.so vdso.so.dbg vdso.lds $(vobjs-y)
 
 export CPPFLAGS_vdso.lds += -P -C
 
-VDSO_LDFLAGS_vdso.lds = -m elf_x86_64 -Wl,-soname=linux-vdso.so.1 \
+VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \
                        -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
 
 $(obj)/vdso.o: $(src)/vdso.S $(obj)/vdso.so
@@ -69,7 +69,7 @@ vdso32.so-$(VDSO32-y)         += sysenter
 vdso32-images                  = $(vdso32.so-y:%=vdso32-%.so)
 
 CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds)
-VDSO_LDFLAGS_vdso32.lds = -m elf_i386 -Wl,-soname=linux-gate.so.1
+VDSO_LDFLAGS_vdso32.lds = -m32 -Wl,-soname=linux-gate.so.1
 
 # This makes sure the $(obj) subdirectory exists even though vdso32/
 # is not a kbuild sub-make subdirectory.