[fpc-devel] Porting fpc to linux-sparc64

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Mon May 29 12:46:57 CEST 2017

On Mon, May 29, 2017 at 11:53:26AM +0200, Karoly Balogh (Charlie/SGR) wrote:
> > Running the file utility on one of the object files shows that the
> > assembler did not generate 32-bit code. So, at least a hotfix here
> > would be to pass "-m32" to the assembler.
> That is easy to add, see in compiler/sparc/cpugas.pas, MakeCmdLine method,
> which works from the templates at the bottom of the same
> file.

Good idea, I'll try that.

> However, this always asks the question, what would happen with other
> platforms, like does this -m32 change breaks 32bit SPARC and/or some
> distros/older versions of binutils? Otherwise I can add it
> permanently, it's no biggie.

You're already doing that for the linker, using the GNU option
syntax. So, I don't think the code becomes any less compatible with
that change.


 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

More information about the fpc-devel mailing list