Re: Reading ELF Files

2014-05-05 Thread Nordlöw
On Sunday, 4 May 2014 at 18:11:45 UTC, yazd wrote: On Friday, 2 May 2014 at 15:25:55 UTC, Nordlöw wrote: On Friday, 2 May 2014 at 10:42:40 UTC, yazd wrote: On Thursday, 1 May 2014 at 17:31:52 UTC, Nordlöw wrote: Here you go, https://github.com/yazd/elf-d. Thanks! Anytime. By the way, if

Re: Reading ELF Files

2014-05-05 Thread Mike Parker via Digitalmars-d-learn
On 5/5/2014 8:17 PM, Nordlöw wrote: One thing though: You cannot call a filename the same as a keyword: package.d because import elf.package; fails with fs.d(144,12): Error: identifier expected following package Actually, package.d is a feature which was added not so long ago. Given: -

Re: Reading ELF Files

2014-05-05 Thread Nordlöw
On Monday, 5 May 2014 at 13:51:12 UTC, Mike Parker wrote: On 5/5/2014 8:17 PM, Nordlöw wrote: One thing though: You cannot call a filename the same as a keyword: package.d because import elf.package; fails with fs.d(144,12): Error: identifier expected following package Actually,

Re: Reading ELF Files

2014-05-04 Thread yazd via Digitalmars-d-learn
On Friday, 2 May 2014 at 15:25:55 UTC, Nordlöw wrote: On Friday, 2 May 2014 at 10:42:40 UTC, yazd wrote: On Thursday, 1 May 2014 at 17:31:52 UTC, Nordlöw wrote: Here you go, https://github.com/yazd/elf-d. Thanks! Anytime. By the way, if you need more stuff out of it or help, post an issue

Re: Reading ELF Files

2014-05-04 Thread Nordlöw
On Sunday, 4 May 2014 at 18:11:45 UTC, yazd wrote: On Friday, 2 May 2014 at 15:25:55 UTC, Nordlöw wrote: On Friday, 2 May 2014 at 10:42:40 UTC, yazd wrote: On Thursday, 1 May 2014 at 17:31:52 UTC, Nordlöw wrote: Here you go, https://github.com/yazd/elf-d. Thanks! Anytime. By the way, if

Re: Reading ELF Files

2014-05-02 Thread yazd via Digitalmars-d-learn
On Thursday, 1 May 2014 at 17:31:52 UTC, Nordlöw wrote: Here you go, https://github.com/yazd/elf-d. Thanks! Anytime. By the way, if you need more stuff out of it or help, post an issue on github. I think I'll be able to help a bit more. But if this library is to move forward, the API will

Re: Reading ELF Files

2014-05-02 Thread Nordlöw
On Friday, 2 May 2014 at 10:42:40 UTC, yazd wrote: On Thursday, 1 May 2014 at 17:31:52 UTC, Nordlöw wrote: Here you go, https://github.com/yazd/elf-d. Thanks! Anytime. By the way, if you need more stuff out of it or help, post an issue on github. I think I'll be able to help a bit more.

Reading ELF Files

2014-05-01 Thread Nordlöw
Have anybody put together some D code for reading out tables from ELF files? A range/slice based version would be nice.

Re: Reading ELF Files

2014-05-01 Thread Tolga Cakiroglu via Digitalmars-d-learn
On Thursday, 1 May 2014 at 11:38:50 UTC, Nordlöw wrote: Have anybody put together some D code for reading out tables from ELF files? A range/slice based version would be nice. I don't know this though, in the morning Ubuntu has showed updates. One of them was libelf which says in its

Re: Reading ELF Files

2014-05-01 Thread yazd via Digitalmars-d-learn
On Thursday, 1 May 2014 at 11:38:50 UTC, Nordlöw wrote: Have anybody put together some D code for reading out tables from ELF files? A range/slice based version would be nice. I have some simple proof of concept code. It is currently able to read elf64 (can be easily adjusted to read elf32

Re: Reading ELF Files

2014-05-01 Thread Nordlöw
I have some simple proof of concept code. It is currently able to read elf64 (can be easily adjusted to read elf32 too) headers, extract sections and read string tables. If this is what you need, then I'll upload my code somewhere (although again, it is quite simplistic). If you specify what

Re: Reading ELF Files

2014-05-01 Thread Nordlöw
again, it is quite simplistic). If you specify what you need a bit more, I might be able to provide that. Please, post :)

Re: Reading ELF Files

2014-05-01 Thread yazd via Digitalmars-d-learn
On Thursday, 1 May 2014 at 13:10:33 UTC, Nordlöw wrote: again, it is quite simplistic). If you specify what you need a bit more, I might be able to provide that. Please, post :) Here you go, https://github.com/yazd/elf-d.

Re: Reading ELF Files

2014-05-01 Thread Nordlöw
Here you go, https://github.com/yazd/elf-d. Thanks!