[PowerPC, Mach-O] PPCMachObjectWriter.cpp, at long last

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Jul 25 05:37:08 PDT 2013


OK, now that I see that this is adding the entire PPCMachObjectWriter
I think it should be tested with llvm-mc. Even a hack like using a .s
file with "linux" syntax would be better than depending on llc
-filetype=obj.

In the past uses llc -filetype=obj stayed around longer than intended
and were fairly brittle.

On 25 July 2013 00:05, David Fang <fang at csl.cornell.edu> wrote:
> Hi,
>         Attached is a patch from my powerpc-darwin8 branch
> [https://github.com/fangism/llvm/tree/powerpc-darwin8] that I've been
> maintaining and merging from trunk for months.  This contains the first cut
> of the relocation entry implementation for mach-o/PPC, which is missing on
> trunk.
>
> The patch addresses the feature requested here:
> http://llvm.org/bugs/show_bug.cgi?id=14636
>
> 1. This patch was extracted piecewise from my powerpc-darwin8 branch.  I can
> only compile the branch and not master/trunk because of other
> compiler-workarounds that are needed, but excluded from this patch.
> It's *possible* I may have made a cut/paste/merge error.
> I could use a volunteer or two to actually test-compile and run this on
> svn-trunk.  Running the new test CodeGen/PowerPC/hello-reloc.ll with
> llvm-lit would be great feedback, and shouldn't require a Darwin machine,
> just have Targets=PPC.
>
> 2. I've tested PIC objects on small hello-world sized programs such as the
> test that is included.  The executables run correctly.
>
> 3. I have compared the object files and their dumps against system-assembled
> (GNU as) object files.  (See bug report above for details.)
>
> 4. Style comments are welcome, though effort to conform on this was minimal.
> I plan to follow through on feedback.
>
> I understand this may take many iterations, but the ball has to get rolling
> some time.
>
> Let the comments begin.
>
> Fang
>
> --
> David Fang
> http://www.csl.cornell.edu/~fang/
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list