| |
| |
| |
|
Page: 1 2 3
<wobster> gr00ber <gr00ber> yo <wobster> solved it yourself? <gr00ber> haven't tried yet <gr00ber> to sleepy <gr00ber> got a headace :( <wobster> this about what the pointer is. just the address. grab that address to - say - eax, then access a or b with [eax] or [eax + 4] <wobster> ok. see you tomorrow <gr00ber> thanks <drocon> ogmgomgomog <drocon> asdf <drocon> is google down <drocon> nvm. gay isp. <libero> :D <Robert> Hi there. <snL20> Only standard library implementors and kernel hackers need to know about socketcall <snL20> anyone know a good source of documentation for socketcall ? <Robert> Hmm.. <Robert> Not really. <Robert> You just got to learn. ;) <minux> Hello people <Robert> man + kernel headers. <minux> Having some problems here,I'll try to explain <minux> I have two asm files, one contains "main" and one contains "_start" .. I want the one containing _start to go into a .so file and "main" into a regular binary linked dynamically to the .so file. So when I execute the binary it loads the so, runs _start which in turn calls the main function in the executable. Is this possible? <minux> I've tried with a thousand different parameters to ld and nasm but all I get from ldd is "statically linked" about the .so and "not a dynamic executable" about the executable. <minux> these are the four commands used: nasm -f elf -o libfoo.o foo.asm && nasm -f elf -o my_asm.o my_asm.asm && ld -s -Bdynamic -Bsymbolic -shared -o libfoo.so libfoo.o && ld -s -Bdynamic -Bsymbolic -dy -o my_asm libfoo.so my_asm.o <minux> That gives me: ld: warning: cannot find entry symbol _start; defaulting to 080481d0 in the end <minux> Shoudln't it find _start in the .so file? <snL20> Robert which headers ? <Robert> Hrm... <minux> ideas? <Robert> Hrm... I couldn't find it now. <snL20> Robert ok, nevermind <minux> If anyone is interested in helping out the files can be found by getting http://rewrite.se/code.tar <minux> (three files, my_asm.asm, foo.asm and Makefile) <minux> When I put "extern _start" in the executables source file it complains about it and says it doesn't know the size of it. <minux> I can make a .so file and make the executable dynamicall link to it... but it only works when I don't have the _start in the .so file. <minux> You guys aren't very helpful :) <Robert> Sorry, minux. <Robert> I just don't know the magic of dynamic linking. <minux> :) <minux> I managed to do it, partially.. <minux> :) <minux> Robert: Anyway, perhaps you know how to signal an interrup in "GAS"? int 0x80 doesn't work in gas but does in nasm <Pettson> minux: int $0x80 <minux> Pettson: thanks <minux> Annoying that even asm is different between compilers <Robert> Heh. <Robert> "even" asm... :D <Robert> The syntax is even less standardised than that of Forth. <minux> lol <minux> Pettson: We got a little problem then <Pettson> minux: What? <minux> Pettson and I are going to create a little asm generating application <minux> What ASM synax should we adhere to, that of GAS or that of NASM? <Robert> Hm, gas is made as a compiler backend... think it's reasonably fast, but not suitable for human consumption. <Robert> Personally I'd use NASM because that's what I normally use. <minux> How suitable, we are going to create a compiler :) <Robert> (well, FASM, but the syntax is similar) <Robert> For which language? <minux> Our own... <Robert> minux: /nick Findus <minux> As a little "just for fun" project :) <minux> Robert: Haha <Robert> Ah, nice. <minux> So, gas or nasm? <Robert> Do you know either? <minux> I know more nasm than gas <Robert> Then I'd use that. <minux> But I don't know how to export stuff from nasm only gas <minux> (.so files that is) <Robert> Oh. <Robert> Hrm, you'd have to check the manual for that. <Robert> Or consider FASM (it's much faster, too) <minux> okay <minux> Yet a later problem though. <Robert> Nope. <Robert> Anything very complex/detailed? <Ober> http://zeniv.linux.org.uk/~ober/hw.S <Ober> found mailing lists describing the need for an ident section so it will atleast run. but that does not fix it <Ober> oh well thanks <minux> Silly me <minux> We don't even need ASM, I think... any way <minux> Good night <Robert> Natti. <Robert> Heh. <Robert> :D <Robert> Men, natti. <minux> Jepps, natti. <Pettson> Robert: A guy on #HPUX (EFNet) recognized Pettson... :) <Robert> Although I'm on there. <minux> Although I am on that net as well =) <Pettson> - and I'm not there. <minux> QuakeNet is full of... crap.. <moab> Should I learn NASM or the program as on unix-like machines ? <iojkl> hello <Piechcio> hi <Piechcio> I have course "Protected mode" <Piechcio> I try to type ex. code <Piechcio> Load_Descr MACRO D_Seg, D_Ofs, D_Len, D_Attr <Piechcio> mov word ptr ds:[bp], D_Len <Piechcio> mov eax, D_Seg <Piechcio> ... <Piechcio> ENDM <Piechcio> and run <Piechcio> Load_descr <SEG GDT>, <OFFSET GDT>, GDT_LEN, D_DATA <Piechcio> error: LOAD_DESCR(7) Operand types do not match <eedy31> hi everibodi <eedy31> aie* <Bigbang> :) <eedy31> is there somebody thath code in VB? <rwt> No? <eedy31> i'v got a problem in including piece of asm code <rwt> Say more about ***embly, please. <eedy31> VB powa <eedy31> because in fact <eedy31> i hope coding a hooker for NtosKrnl.exe in VB <eedy31> and i need including some SEH <eedy31> maybe it will be supported in VBscript? <wobster> eedy31, you're totally wrong here <eedy31> why? <eedy30-12> (incognito) <wobster> FREEnode, #asm ... think about these two names, until you get the idea <mattwood> a hooker for ntoskrnl.exe in VB? :/ <eedy30-12> yes <eedy30-12> because it is user frenlier <mattwood> friendly* <eedy30-12> rho taggle toi <mattwood> try on #visualbasic <eedy30-12> is there any asm coder here? <mattwood> you are a Bigbang's friend? <Bouley31> who is Bigbang ? <mattwood> <eedy31> hi everibodi <mattwood> <eedy31> aie* <mattwood> <Bigbang> :) <mattwood> I hope he doesn't know you <Bigbang> stop kidding guys <Bouley31> maybe he love my lovely little *** <Bouley31> or ***hole <Bouley31> i don't know <Bouley31> loveS*
Return to asm or Go to some related
logs:
football football canada
|
|