klinkers

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

klinkers

Post by df »

hmm spent this weekend working on a linker. mm klinkers... they are a sweet we get in australia and i miss em! :) mm anyway..

this links win32 COFF files... i was surprised how easy it is to link them... so far I can link object files without relocation (ok ok so its not much of an achievement...) but relocations look pretty easy too...

then its comdat sections and stuff.. and named text sections text$1 .text$2 etc... anyway...

i'm just surprised how easy it is to link COFF win32 files because the PE format is so... complex (TLS and other ****!)

mmm.. anyway.. enough of my stupid endevours, its too too cold to be outside....
-- Stu --
jamesb

Re:klinkers

Post by jamesb »

df wrote: they are a sweet we get in australia...
What?! You're an Aussie too??
this links win32 COFF files... i was surprised how easy it is to link them... so far I can link object files without relocation (ok ok so its not much of an achievement...) but relocations look pretty easy too...
Good work! See the alink src for tips. I'd like to write an assembler actually, one that's as powertful and flexible as GAS (also using AT&T syntax) but as easy to use as NASM. It annoys me how I have to use objcopy to get a flat binary with GAS, and I don't like Intel syntax... and I have a list of other little annoyances I'd like to get rid of with a new assembler. Furthermore I'd like a nice "IDE" - not huge IDE like MS Visual Studio, but a nice, slim, easy to use "IDE" like Borland's old Turbo C++.

Let us know how you go with the linker, and make sure you post the URL to your work when it's done! :)
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:klinkers

Post by df »

yeah i'm aussie. i just live in london for now. (melbournian)

have you looked at alink source? it is naaaaaasty. its horrid. :) really.

i dont like as/gas. its horrid imo ;) i tried to go back to WASM and that was an eye opener. i forgot how to do simple things. (like mov d[0x0604], eax)... it just kept erroring... anyway..

it reminds me that nasm spoils me, i grew up on tasm, but this nasm no-rules thing is just.. nice... :)
-- Stu --
jamesb

Re:klinkers

Post by jamesb »

You can afford to live in London?! How on earth do you do that?

I'm actually a British citizen too, so I will definately be going "home" some time as well... ;D

Anyway, yeah, I think NASM is really nice (I also grew up on TASM, but also MASM.) But I don't really like Intel syntax. I prefer the AT&T syntax and the more intuitive OP SRC, DEST.

You think the alink src is bad? I thought it was easy to read! Must be just me... ;)
sonneveld

Re:klinkers

Post by sonneveld »

mmm.. clinkers. gf doesn't like them cause they've got gelatin in them. :)

- Nick
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:klinkers

Post by df »

yeah me neither. gelatin = animal product = non vegetarian..

but damn i used to love em!
-- Stu --
Post Reply