[llvm] r259641 - [mips] Add SHF_MIPS_GPREL flag to the MIPS .sbss and .sdata sections
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 6 08:55:17 PST 2016
On Fri, Feb 5, 2016 at 4:44 PM, Rafael Espíndola
<rafael.espindola at gmail.com> wrote:
> On 5 February 2016 at 07:19, Simon Atanasyan <simon at atanasyan.com> wrote:
>> Unfortunately now it is impossible. llvm-mc does not support some
>> necessary flags etc.
> Which flags? Is it being worked on? It is *very* scary to be able to
> produce a .o to which there is no .s equivalent.
I was not correct - llvm-mc does not support MIPS specific .sdata and
.sbss directives to create the corresponding sections. Also it does
not know about default flags and section types need to be assigned to
these sections so ".section .sdata" is accepted but produces .sdata
section with no type and no flags.
The attached patch partially fixes this problem (.sdata and .sbss
directives still unsupported) and converts original test case to .s
form. I am not sure about correctness of the selected approach.
Daniel, what do you think about that?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2594 bytes
Desc: not available
More information about the llvm-commits