Skip to contentSkip to conversation

extend list of sections convertible to .init.* ones in init-only objects

PATCH In review Jan Beulich 2 participants 3 messages Jan 12, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extend list of sections convertible to .init.* ones in init-only objects

In particular the .rodata.str2 case is relevant for the EFI boot code (moving around 3k from permanent to init-time sections).

xen/Rules.mk +4 -1
@@ -170,7 +170,10 @@ _clean_%/: FORCE
 %.o: %.S Makefile
 	$(CC) $(AFLAGS) -c $< -o $@
 
-SPECIAL_DATA_SECTIONS := rodata $(foreach n,1 2 4 8,rodata.str1.$(n)) \
+SPECIAL_DATA_SECTIONS := 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)
 
 $(filter %.init.o,$(obj-y) $(obj-bin-y) $(extra-y)): %.init.o: %.o Makefile

extend list of sections convertible to .init.* ones in init-only objects

In particular the .rodata.str2 case is relevant for the EFI boot code (moving around 3k from permanent to init-time sections).

xen/Rules.mk +4 -1
@@ -170,7 +170,10 @@ _clean_%/: FORCE
 %.o: %.S Makefile
 	$(CC) $(AFLAGS) -c $< -o $@
 
-SPECIAL_DATA_SECTIONS := rodata $(foreach n,1 2 4 8,rodata.str1.$(n)) \
+SPECIAL_DATA_SECTIONS := 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)
 
 $(filter %.init.o,$(obj-y) $(obj-bin-y) $(extra-y)): %.init.o: %.o Makefile

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 12.01.15 at 15:03, <[email protected]> wrote:
Quoted 2 lines · Jan Beulich

In particular the .rodata.str2 case is relevant for the EFI boot code (moving around 3k from permanent to init-time sections).

So we go from handling .rodata.str1.{1,2,3,8}
to .rodata.str{1,2,4}.{1,2,4,8,16}?

These plus .rodata.cst{1,2,4,8,16}.

Jan