[Git][cmucl/cmucl][master] 2 commits: Add some comments.
Raymond Toy
rtoy at common-lisp.net
Sun Oct 11 16:05:58 UTC 2015
Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
6e2e81b7 by Raymond Toy at 2015-10-11T08:46:36Z
Add some comments.
MIN_VER requires the 10.5 SDK be available.
Add -Wl,-no_pie to turn off warning (and add comment).
- - - - -
51b6b2de by Raymond Toy at 2015-10-11T08:58:06Z
Cleanup.
Remove old comment, and remove the min OSX version on ppc too.
- - - - -
2 changed files:
- src/lisp/Config.x86_darwin
- src/tools/linker.sh
Changes:
=====================================
src/lisp/Config.x86_darwin
=====================================
--- a/src/lisp/Config.x86_darwin
+++ b/src/lisp/Config.x86_darwin
@@ -2,7 +2,8 @@
include Config.x86_common
-# Compile code that will run on OSX 10.5 (Tiger)
+# Compile code that will run on OSX 10.5 (Tiger). This only works if
+# you have the 10.5 SDK available.
MIN_VER = -mmacosx-version-min=10.5
CPPFLAGS += -DDARWIN $(MIN_VER) -m32
@@ -13,7 +14,10 @@ ASFLAGS += -g3 $(MIN_VER)
UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
OS_SRC += Darwin-os.c mach-o.c
-OS_LINK_FLAGS = -m32 $(MIN_VER)
+
+# Turn off the PIE warning; we know the x86-assem.S is not
+# relocatable, and we're not going to fix that anytime soon.
+OS_LINK_FLAGS = -m32 $(MIN_VER) -Wl,-no_pie
OS_LIBS =
EXEC_FINAL_OBJ = exec-final.o
=====================================
src/tools/linker.sh
=====================================
--- a/src/tools/linker.sh
+++ b/src/tools/linker.sh
@@ -92,12 +92,8 @@ case $uname_s in
# Extra stuff. For some reason one __LINKEDIT segment is
# mapped just past the dynamic space. This messes things
# up, so we move it to another address. This seems to be
- # free, at least on 10.5.
-
- # Also specify the min version. (See Config.x86_darwin for
- # the desired version.) This gets rid of a PIE warning
- # when creating the executable on 10.8. (See ticket:112.)
-
+ # free, at least on 10.5. -no_pie is to get rid of the
+ # linker warning about PIE.
OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -rdynamic -Wl,-no_pie"
OS_LIBS=
;;
@@ -106,7 +102,7 @@ case $uname_s in
# just after the dynamic space which messes things up, so
# we move it to a diffferent address. The address below
# appears to be free.
- OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -mmacosx-version-min=10.4 -static-libgcc"
+ OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -static-libgcc"
OS_LIBS="-lSystem -lc -lm"
;;
esac
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/compare/323c6cdb84a8d5cb87080f9bf275fe4839e69a68...51b6b2deb1036d5e989c0886f9faea99c8badaaf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cmucl-cvs/attachments/20151011/bb6f94cf/attachment.html>
More information about the cmucl-cvs
mailing list