Re: [PATCH][ARM] -mpure-code option for ARM

2016-07-07 Thread mickael guene
Hi Andre, Another feedback on your purecode patch. You have to disable casesi pattern since then it will generate wrong code with -mpure-code option. Indeed it will generate an 'adr rx, .Lx' (aka 'subs rx, PC, #offset') which will not work in our case since 'Lx' label is put in an .rodata sect

Re: [PATCH][ARM] -mpure-code option for ARM

2016-07-07 Thread mickael guene
Hi Andre, I think you have a typo in your patch. I need to change : +text_section->unnamed.data = "\t.section .text,\"0x2006\",%%progbits"; into +text_section->unnamed.data = "\t.section .text,\"0x2006\",%progbits"; to make it works. Regards Mickael On 06/30/2016 04:32 PM

Re: [PATCH][ARM] -mpure-code option for ARM

2016-07-01 Thread Sandra Loosemore
On 06/30/2016 08:32 AM, Andre Vieira (lists) wrote: @@ -14498,6 +14499,14 @@ Print CPU tuning information as comment in assembler file. This is an option used only for regression testing of the compiler and not intended for ordinary use in compiling code. This option is disabled by default

[PATCH][ARM] -mpure-code option for ARM

2016-06-30 Thread Andre Vieira (lists)
Hello, This patch adds the -mpure-code option for ARM. This option ensures functions are put into sections that contain only code and no data. To ensure this throughout compilation we give these sections the ARM processor-specific ELF section attribute "SHF_ARM_PURECODE". This option is only suppo