flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Linux > fasdump : program to dump contents of fas filesGoto page Previous 1, 2  | 
  
| Author | 
  | 
              
| 
                  
                   Tarkin 04 Sep 2010, 06:43 
                  ...the file? I can't seem to find it...  
                TIA, Tarkin  | 
              |||
                  
  | 
              
| 
                  
                   revolution 04 Sep 2010, 06:53 
                  Make sure you are logged in and then see the first post in this thread. 
                 | 
              |||
                  
  | 
              
| 
                  
                   Tarkin 04 Sep 2010, 07:38 
                  Doh! I have to remember to login...
 
                Have a suggestion: Code: #define FASMSIGNATURE 0xDEADBEEF /* Change 0xDEADBEEF to the current fasm signature */ ... /*if (hdr.signature != 0x1B736166) {*/ if (hdr.signature != FASMSIGNATURE) { For fasm 1.69.18, the signature is 0x1A736166 Thanks for fasdump! I will try and work on a shell script which will filter fasdump's output and prints out fixed-up addresses ( for Linux ELF 32 ). TTFN, Tarkin  | 
              |||
                  
  | 
              
| 
                  
                   Tomasz Grysztar 04 Sep 2010, 08:21 
                  Tarkin wrote: For fasm 1.69.18, the signature is 0x1A736166 It was this way for fasm 1.68 already.  | 
              |||
                  
  | 
              
| 
                  
                   Tarkin 04 Sep 2010, 08:40 
                  Ah, yes, missed that post. But I was intending it as fix for fasdump, as DJ Mauretto pointed out.
 
                Also, here is the awk one-liner I hinted at earlier: Code: fasdump -s prog.fas | awk '/(\.text)|(\.rodata)|(\.bss)/ { OFFSET=0x08048074; ADDR = strtonum($4) + OFFSET ; printf("%s : 0x%08X\n",$1,ADDR) } ' Thanks all and HTH, Tarkin  | 
              |||
                  
  | 
              
| 
                  
                   mariosk8s 29 Oct 2015, 09:54 
                  I experienced segfaults on linux due to 2s compliment issues when casting (uint32_t)(*token_ptr). 
 
        Something like 89 00 00 00 turned into 89 ff ff ff resulting in rather long lengths. The attached patch makes these char types unsigned (uint8_t). I also adjusted the hdr.signature to 1B. I added the .txt extension because of "The Extension patch is not allowed" error when posting. 
 _________________ Regards Mario  | 
              |||||||||||
                  
  | 
              
| Goto page  Previous  1, 2 < Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.