[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v4 06/20] x86emul: place test blobs in executable section



>>> On 06.03.18 at 12:28, <andrew.cooper3@xxxxxxxxxx> wrote:
> On 28/02/18 13:00, Jan Beulich wrote:
>> --- unstable.orig/tools/tests/x86_emulator/Makefile
>> +++ unstable/tools/tests/x86_emulator/Makefile
>> @@ -91,7 +91,7 @@ $(addsuffix .h,$(TESTCASES)): %.h: %.c t
>>              $(MAKE) -f testcase.mk TESTCASE=$* XEN_TARGET_ARCH=$(arch) 
>> $*-cflags="$$cflags" all; \
>>              prefix=$(shell echo $(subst -,_,$*) | sed -e 
>> 's,^\([0-9]\),_\1,'); \
>>              flavor=$$(echo $${cflags} | sed -e 's, .*,,' -e 'y,-=,__,') ; \
>> -            (echo "static const unsigned int $${prefix}_$(arch)$${flavor}[] 
>> = {"; \
>> +            (echo 'static const unsigned int 
>> __attribute__((section(".test"))) '"$${prefix}_$(arch)$${flavor}[] = {"; \
> 
> Given that we're already playing many toolchain games, the following
> actually removes the warning you cite in the commit message.
> 
> __attribute__((section(".test, \"ax\", @progbits #")))

Wow, yes, I'll integrate that.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.