Fix ld output with recent versions of GCC and binutils
[pintos-anon] / src / Make.config
index 14219b68ad462db8fdd16b01bfec577c5bb0912e..e0afafbc9d77e15a98e3d0423a7d0d9344d3f5b7 100644 (file)
@@ -36,7 +36,7 @@ WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers
 CFLAGS = -g -msoft-float -O -march=i686
 CPPFLAGS = -nostdinc -I$(SRCDIR) -I$(SRCDIR)/lib
 ASFLAGS = -Wa,--gstabs
-LDFLAGS = 
+LDFLAGS = -z noseparate-code
 DEPS = -MMD -MF $(@:.o=.d)
 
 # Turn off -fstack-protector, which we don't support.