Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 12th, 2013  |  syntax: None  |  size: 0.76 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. SEARCH_DIR(.)
  2. ENTRY(main)
  3. OUTPUT_FORMAT(elf32-littlearm)
  4. OUTPUT_ARCH(arm)
  5. EXTERN(main)
  6.  
  7. PHDRS
  8. {
  9.     rx PT_LOAD;
  10.     rwx PT_LOAD;
  11.     rw PT_LOAD;
  12. }
  13.  
  14. SECTIONS
  15. {
  16.     . = 0x60000000;
  17.  
  18.     .text : {
  19.         * (.text)
  20.     } : rx
  21.  
  22.     .rodata : {
  23.         * (.rodata)
  24.         * (.rodata.*)
  25.     } : rx
  26.  
  27.     .stack (NOLOAD) : {
  28.          * (.stack)
  29.          _stackbegin = .;
  30.          stackbegin = .;
  31.          . += 0x2000;
  32.          _stackend = .;
  33.          stackend = .;
  34.          _irqstackbegin = .;
  35.          . += 0x400;
  36.          _irqstackend = .;
  37.          _fiqstackbegin = .;
  38.          . += 0x400;
  39.          _fiqstackend = .;
  40.     } : rw
  41.  
  42.     .data ALIGN(0x1000) : {
  43.         * (.data)
  44.     } : rw
  45.  
  46.     .bss : {
  47.         * (.bss)
  48.     } : rw
  49. }