[PATCH][ppc64le] Generate little-endian object files
Hal Finkel
hfinkel at anl.gov
Mon Mar 24 10:33:01 PDT 2014
----- Original Message -----
> From: "Ulrich Weigand" <Ulrich.Weigand at de.ibm.com>
> To: llvm-commits at cs.uiuc.edu, "Hal Finkel" <hfinkel at anl.gov>
> Sent: Tuesday, March 18, 2014 1:13:36 PM
> Subject: [PATCH][ppc64le] Generate little-endian object files
>
>
>
> Hello,
>
> as a first step towards real little-endian code generation, this
> patch
> changes the PowerPC MC layer to actually generate little-endian
> object
> files. This involves passing the little-endian flag through the
> various
> layers, including down to createELFObjectWriter so we actually get
> basic
> little-endian ELF objects, emitting instructions in little-endian
> order,
> and handling fixups and relocations as appropriate for little-endian.
>
> The bulk of the patch is to update most test cases in test/MC/PowerPC
> to
> verify both big- and little-endian encodings. (The only test cases
> *not*
> updated are those that create actual big-endian ABI code, like the
> TLS
> tests.)
>
> Note that while the object files are now little-endian, the generated
> code
> itself is not yet updated, in particular, it still does not adhere to
> the
> ELFv2 ABI.
>
> Does this look OK?
LGTM. Thanks!
-Hal
>
> (See attached file: diff-llvm-ppc64le-mc)
>
>
> Mit freundlichen Gruessen / Best Regards
>
> Ulrich Weigand
>
> --
> Dr. Ulrich Weigand | Phone: +49-7031/16-3727
> STSM, GNU/Linux compilers and toolchain
> IBM Deutschland Research & Development GmbH
> Vorsitzende des Aufsichtsrats: Martina Koederitz |
> Geschäftsführung: Dirk
> Wittkopp
> Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht
> Stuttgart, HRB 243294
--
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory
More information about the llvm-commits
mailing list