diff options
author | Richard Lowe <richlowe@richlowe.net> | 2019-03-24 00:27:57 +0000 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2019-04-24 16:59:38 +0000 |
commit | ab65fd2a6cf8b63577d26411f2ea4b628591d56d (patch) | |
tree | 419f5d778eec9084aaa8ec0683cf375fba9c1f8e /usr/src/uts/intel/genunix | |
parent | c524b4fe42d7c586615aacae917f985e3379a108 (diff) | |
download | illumos-joyent-ab65fd2a6cf8b63577d26411f2ea4b628591d56d.tar.gz |
10593 illumos build should not use kernel modules as link-editor input
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/intel/genunix')
-rw-r--r-- | usr/src/uts/intel/genunix/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/usr/src/uts/intel/genunix/Makefile b/usr/src/uts/intel/genunix/Makefile index 3603bce20a..04a0279b01 100644 --- a/usr/src/uts/intel/genunix/Makefile +++ b/usr/src/uts/intel/genunix/Makefile @@ -156,8 +156,19 @@ clean.lint: $(CLEAN_LINT_DEPS) install: $(INSTALL_DEPS) -$(LIBGEN): $(GENUNIX) $(LIBSTUBS) - $(BUILD.SO) $(GENUNIX) $(LIBSTUBS) +# Due to what seems to be an issue in GCC 4 generated DWARF containing +# symbolic relocations against non-allocatable .debug sections, libgenunix.so +# must be built from a stripped object, thus we create an intermediary +# libgenunix.o we can safely strip. +LIBGENUNIX_O = $(OBJS_DIR)/libgenunix.o +CLEANFILES += $(LIBGENUNIX_O) + +$(LIBGENUNIX_O): $(OBJECTS) + $(LD) -r -o $(OBJS_DIR)/libgenunix.o $(OBJECTS) + $(STRIP) -x $(OBJS_DIR)/libgenunix.o + +$(LIBGEN): $(LIBGENUNIX_O) $(LIBSTUBS) + $(BUILD.SO) $(LIBGENUNIX_O) $(LIBSTUBS) $(IPCTF_TARGET) ipctf_target: FRC @cd $(IPDRV_DIR); pwd; $(MAKE) ipctf.$(OBJS_DIR) |