From: "Jan Beulich" Subject: [PATCH] extend list of sections convertible to .init.* ones in init-only objects Date: Mon, 12 Jan 2015 09:00:45 +0000 Message-ID: <54B39B4D020000780005384A@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part2F1AC52D.1__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YAarj-0006F9-CB for xen-devel@lists.xenproject.org; Mon, 12 Jan 2015 09:00:51 +0000 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 Cc: Ian Campbell , Keir Fraser , Ian Jackson , Tim Deegan List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part2F1AC52D.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline In particular the .rodata.str2 case is relevant for the EFI boot code (moving around 3k from permanent to init-time sections). Signed-off-by: Jan Beulich --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -170,7 +170,10 @@ _clean_%/: FORCE %.o: %.S Makefile $(CC) $(AFLAGS) -c $< -o $@ =20 -SPECIAL_DATA_SECTIONS :=3D rodata $(foreach n,1 2 4 8,rodata.str1.$(n)) \ +SPECIAL_DATA_SECTIONS :=3D rodata $(foreach a,1 2 4 8 16, \ + $(foreach w,1 2 4, \ + rodata.str$(w).$(a)= ) \ + rodata.cst$(a)) \ $(foreach r,rel rel.ro,data.$(r).local) =20 $(filter %.init.o,$(obj-y) $(obj-bin-y) $(extra-y)): %.init.o: %.o = Makefile --=__Part2F1AC52D.1__= Content-Type: text/plain; name="wide-string-literals-init.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="wide-string-literals-init.patch" extend list of sections convertible to .init.* ones in init-only objects=0A= =0AIn particular the .rodata.str2 case is relevant for the EFI boot = code=0A(moving around 3k from permanent to init-time sections).=0A=0ASigned= -off-by: Jan Beulich =0A=0A--- a/xen/Rules.mk=0A+++ = b/xen/Rules.mk=0A@@ -170,7 +170,10 @@ _clean_%/: FORCE=0A %.o: %.S = Makefile=0A $(CC) $(AFLAGS) -c $< -o $@=0A =0A-SPECIAL_DATA_SECTIONS = :=3D rodata $(foreach n,1 2 4 8,rodata.str1.$(n)) \=0A+SPECIAL_DATA_SECTION= S :=3D rodata $(foreach a,1 2 4 8 16, \=0A+ = $(foreach w,1 2 4, \=0A+ = rodata.str$(w).$(a)) \=0A+ = rodata.cst$(a)) \=0A $(foreach r,rel rel.ro,data.$(r).l= ocal)=0A =0A $(filter %.init.o,$(obj-y) $(obj-bin-y) $(extra-y)): = %.init.o: %.o Makefile=0A --=__Part2F1AC52D.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part2F1AC52D.1__=--