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....
klinkers
Re:klinkers
What?! You're an Aussie too??df wrote: they are a sweet we get in australia...
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++.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...
Let us know how you go with the linker, and make sure you post the URL to your work when it's done!
Re:klinkers
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...
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 --
Re:klinkers
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...
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...
Re:klinkers
mmm.. clinkers. gf doesn't like them cause they've got gelatin in them.
- Nick
- Nick
Re:klinkers
yeah me neither. gelatin = animal product = non vegetarian..
but damn i used to love em!
but damn i used to love em!
-- Stu --