[LLVMdev] 64-bit binaries and the Solaris linker

Anton Korobeynikov anton at korobeynikov.info
Wed Oct 27 11:27:27 PDT 2010


Hello

> - would it be acceptable to have system-specific output depending on
> the target linker chain? (and have this likely OS/arch dependent, in
> this specific case, Solaris+AMD64).
> - was a similar problem already faced in other environments and what
> was the solution adopted there? (pointer to the code would be great so
> that I could keep mine coherent with that).
> - any other point/problem/detail :-)
You should create new subtarget (Solaris) inside x86 backend
(probably, inside sparc as well),
create subtarget-specific TargetLoweringObjectFile and emit stuff there.
See X86TargetObjectFile.{cpp,h} as an example.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list