From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luis R. Rodriguez" Subject: [PATCH 6/9] mini-os: fix linker warning with app.lds Date: Fri, 20 Nov 2015 09:47:49 -0800 Message-ID: <1448041672-3986-7-git-send-email-mcgrof@do-not-panic.com> References: <1448041672-3986-1-git-send-email-mcgrof@do-not-panic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1448041672-3986-1-git-send-email-mcgrof@do-not-panic.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com, ian.campbell@citrix.com, JBeulich@suse.com Cc: samuel.thibault@ens-lyon.org, "Luis R. Rodriguez" , pryorm09@gmail.com, cfergeau@redhat.com List-Id: xen-devel@lists.xenproject.org From: "Luis R. Rodriguez" We toss around the linker script app.lds without specifying -T, this works but causes the following warning. Let's split this the required objects and use -T for the linker script. This fixes this linker warning: mcgrof@ergon ~/devel/xen/stubdom (git::stable-4.6)$ make all 2>&1| grep warning| grep app ld: warning: app.lds contains output sections; did you forget -T? Acked-by: Samuel Thibault Signed-off-by: Luis R. Rodriguez --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2cb5e51a16d7..33d3c5870a6e 100644 --- a/Makefile +++ b/Makefile @@ -178,7 +178,7 @@ OBJS := $(filter-out $(OBJ_DIR)/daytime.o, $(OBJS)) endif $(OBJ_DIR)/$(TARGET)_app.o: $(APP_OBJS) app.lds - $(LD) -r -d $(LDFLAGS) -\( $^ -\) $(APP_LDLIBS) --undefined main -o $@ + $(LD) -r -d $(LDFLAGS) -\( $(APP_OBJS) -T app.lds -\) $(APP_LDLIBS) --undefined main -o $@ ifneq ($(APP_OBJS),) APP_O=$(OBJ_DIR)/$(TARGET)_app.o -- 2.6.2