www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - gc linker links foreign object files

--e89a8f642a2af5d9c404ccb4c3ab
Content-Type: text/plain; charset=UTF-8

Not sure if the D community know about this but:
https://groups.google.com/forum/#!msg/golang-nuts/UOIUyn7uFsY/Uescy-cI7hQJ

"the linker in the gc toolchain is capable of linking foreign object files
(provided that architecture
matches), e.g. you can link a amd64 ELF file into a amd64 Mach-O binary,
 or a 386 COFF file
into a 386 ELF binary."

Perhaps the linker from the gc toolchain could help some people using D who
want to be able to just link whatever binary files together?

If this is already known please ignore :D. If this is not usable for D and
has already been tried please reply.

Cheers,
-Rory

--e89a8f642a2af5d9c404ccb4c3ab
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div style=3D"margin:0px;padding:0px;border:0px;vertical-align:baseline;col=
or:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13.200000=
762939453px;background-color:rgb(255,255,255)">Not sure if the D community =
know about this but:</div>
<div style=3D"margin:0px;padding:0px;border:0px;vertical-align:baseline;col=
or:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13.200000=
762939453px;background-color:rgb(255,255,255)"><a href=3D"https://groups.go=
ogle.com/forum/#!msg/golang-nuts/UOIUyn7uFsY/Uescy-cI7hQJ">https://groups.g=
oogle.com/forum/#!msg/golang-nuts/UOIUyn7uFsY/Uescy-cI7hQJ</a></div>
<div style=3D"margin:0px;padding:0px;border:0px;vertical-align:baseline;col=
or:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13.200000=
762939453px;background-color:rgb(255,255,255)"><br></div><div style=3D"marg=
in:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(34,34,34);f=
ont-family:Arial,Helvetica,sans-serif;font-size:13.200000762939453px;backgr=
ound-color:rgb(255,255,255)">
&quot;the linker in the gc toolchain is capable of linking foreign object f=
iles (provided that architecture</div><div style=3D"margin:0px;padding:0px;=
border:0px;vertical-align:baseline;color:rgb(34,34,34);font-family:Arial,He=
lvetica,sans-serif;font-size:13.200000762939453px;background-color:rgb(255,=
255,255)">
matches), e.g. you can link a amd64 ELF file into a amd64 Mach-O binary, =
=C2=A0or=C2=A0a 386 COFF file</div><div style=3D"margin:0px;padding:0px;bor=
der:0px;vertical-align:baseline;color:rgb(34,34,34);font-family:Arial,Helve=
tica,sans-serif;font-size:13.200000762939453px;background-color:rgb(255,255=
,255)">
into a 386 ELF binary.&quot;</div><div style=3D"margin:0px;padding:0px;bord=
er:0px;vertical-align:baseline;color:rgb(34,34,34);font-family:Arial,Helvet=
ica,sans-serif;font-size:13.200000762939453px;background-color:rgb(255,255,=
255)">
<br></div><div style=3D"margin:0px;padding:0px;border:0px;vertical-align:ba=
seline;color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size=
:13.200000762939453px;background-color:rgb(255,255,255)">Perhaps the linker=
 from the gc toolchain could help some people using D who want to be able t=
o just link whatever binary files together?</div>
<div style=3D"margin:0px;padding:0px;border:0px;vertical-align:baseline;col=
or:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13.200000=
762939453px;background-color:rgb(255,255,255)"><br></div><div style=3D"marg=
in:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(34,34,34);f=
ont-family:Arial,Helvetica,sans-serif;font-size:13.200000762939453px;backgr=
ound-color:rgb(255,255,255)">
If this is already known please ignore :D. If this is not usable for D and =
has already been tried please reply.</div><div style=3D"margin:0px;padding:=
0px;border:0px;vertical-align:baseline;color:rgb(34,34,34);font-family:Aria=
l,Helvetica,sans-serif;font-size:13.200000762939453px;background-color:rgb(=
255,255,255)">
<br></div><div style=3D"margin:0px;padding:0px;border:0px;vertical-align:ba=
seline;color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size=
:13.200000762939453px;background-color:rgb(255,255,255)">Cheers,</div><div =
style=3D"margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rg=
b(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13.20000076293=
9453px;background-color:rgb(255,255,255)">
-Rory</div>

--e89a8f642a2af5d9c404ccb4c3ab--
Oct 23 2012