Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

gnu as lm32

By: a guest on Mar 7th, 2013  |  syntax: ASM (NASM)  |  size: 19.62 KB  |  hits: 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. #   compile  compat/compat_util.o
  2. /Users/fallen/dev/netbsd/src/obj/tooldir.Darwin-10.8.0-i386/bin/lm32--netbsd-gcc -ffreestanding -fno-zero-initialized-in-bss  -O2 -fno-strict-aliasing -fno-common   -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare    --sysroot=/Users/fallen/dev/netbsd/src/obj/destdir.milkymist -Dmilkymist -I../../. -I/Users/fallen/dev/netbsd/src/sys/../common/include -I/Users/fallen/dev/netbsd/src/sys/arch -I/Users/fallen/dev/netbsd/src/sys -nostdinc -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/Users/fallen/dev/netbsd/src/sys/lib/libkern/../../../common/lib/libc/quad -I/Users/fallen/dev/netbsd/src/sys/lib/libkern/../../../common/lib/libc/string  --sysroot=/Users/fallen/dev/netbsd/src/obj/destdir.milkymist  -c    /Users/fallen/dev/netbsd/src/sys/compat/common/compat_util.c -o compat_util.o
  3. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Assembler messages:
  4. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:136: Warning: This is the end!
  5. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:168: Warning: This is the end!
  6. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:244: Warning: This is the end!
  7. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:274: Warning: This is the end!
  8. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:277: Warning: This is the end!
  9. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:281: Warning: This is the end!
  10. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:306: Warning: This is the end!
  11. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:309: Warning: This is the end!
  12. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:312: Warning: This is the end!
  13. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:315: Warning: This is the end!
  14. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s:319: Warning: This is the end!
  15. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  16. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  17. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 104 ; right = 0
  18. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  19. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8406384 ; op_symbol = 8405128
  20. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Error: .size expression for emul_find_root does not evaluate to a constant
  21. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for emul_find_root: size->X_op == 20
  22. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  23. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  24. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 104 ; right = 0
  25. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  26. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8406384 ; op_symbol = 8405128
  27. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for emul_find_root: resolve_expression(size) == 0
  28. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  29. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  30. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 368 ; right = 0
  31. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  32. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8540832 ; op_symbol = 8538128
  33. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Error: .size expression for emul_find_interp does not evaluate to a constant
  34. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for emul_find_interp: size->X_op == 20
  35. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  36. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  37. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 368 ; right = 0
  38. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  39. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8540832 ; op_symbol = 8538128
  40. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for emul_find_interp: resolve_expression(size) == 0
  41. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  42. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  43. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 452 ; right = 0
  44. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  45. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8542064 ; op_symbol = 8540952
  46. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Error: .size expression for emul_flags_translate does not evaluate to a constant
  47. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for emul_flags_translate: size->X_op == 20
  48. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  49. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  50. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 452 ; right = 0
  51. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  52. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8542064 ; op_symbol = 8540952
  53. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for emul_flags_translate: resolve_expression(size) == 0
  54. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  55. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  56. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 532 ; right = 0
  57. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  58. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8555856 ; op_symbol = 8554728
  59. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Error: .size expression for compat_offseterr does not evaluate to a constant
  60. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for compat_offseterr: size->X_op == 20
  61. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  62. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  63. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 532 ; right = 0
  64. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  65. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8555856 ; op_symbol = 8554728
  66. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for compat_offseterr: resolve_expression(size) == 0
  67. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  68. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  69. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 812 ; right = 0
  70. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  71. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8560712 ; op_symbol = 8556168
  72. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Error: .size expression for compat_elf_check_interp does not evaluate to a constant
  73. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for compat_elf_check_interp: size->X_op == 20
  74. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: we skip return 0
  75. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_right != absolute_section
  76. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: left = 812 ; right = 0
  77. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: seg_left = 8482816 ; seg_right = 854976 ; reg_section = 8483728
  78. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: undefined_section = 854976 ; add_symbol = 8560712 ; op_symbol = 8556168
  79. /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Warning: .size expression for compat_elf_check_interp: resolve_expression(size) == 0
  80.  
  81.  
  82. here is the content of ccjcEt9q.s (I ran the command by hand and added -S):
  83.  
  84.         .file   "compat_util.c"
  85. #APP
  86.         .pushsection .ident
  87. .asciz "$NetBSD: compat_util.c,v 1.44 2010/11/19 06:44:35 dholland Exp $"
  88. .popsection
  89.          .ifndef _KERNEL_OPT_DDB_VERBOSE_HELP
  90.  .global _KERNEL_OPT_DDB_VERBOSE_HELP
  91.  .equiv _KERNEL_OPT_DDB_VERBOSE_HELP,0x6e074def
  92.  .endif
  93.          .ifndef _KERNEL_OPT_DDB
  94.  .global _KERNEL_OPT_DDB
  95.  .equiv _KERNEL_OPT_DDB,0x6e074def
  96.  .endif
  97.          .ifndef _KERNEL_OPT_MULTIPROCESSOR
  98.  .global _KERNEL_OPT_MULTIPROCESSOR
  99.  .equiv _KERNEL_OPT_MULTIPROCESSOR,0x6e074def
  100.  .endif
  101.          .ifndef _KERNEL_OPT_MODULAR
  102.  .global _KERNEL_OPT_MODULAR
  103.  .equiv _KERNEL_OPT_MODULAR,0x6e074def
  104.  .endif
  105.          .ifndef _KERNEL_OPT_UVMMAP_COUNTERS
  106.  .global _KERNEL_OPT_UVMMAP_COUNTERS
  107.  .equiv _KERNEL_OPT_UVMMAP_COUNTERS,0x6e074def
  108.  .endif
  109.          .ifndef _KERNEL_OPT_USE_TOPDOWN_VM
  110.  .global _KERNEL_OPT_USE_TOPDOWN_VM
  111.  .equiv _KERNEL_OPT_USE_TOPDOWN_VM,0x6e074def
  112.  .endif
  113.          .ifndef _KERNEL_OPT_LOCKDEBUG
  114.  .global _KERNEL_OPT_LOCKDEBUG
  115.  .equiv _KERNEL_OPT_LOCKDEBUG,0x6e074def
  116.  .endif
  117.          .ifndef _KERNEL_OPT_MULTIPROCESSOR
  118.  .global _KERNEL_OPT_MULTIPROCESSOR
  119.  .equiv _KERNEL_OPT_MULTIPROCESSOR,0x6e074def
  120.  .endif
  121.          .ifndef _KERNEL_OPT_LOCKDEBUG
  122.  .global _KERNEL_OPT_LOCKDEBUG
  123.  .equiv _KERNEL_OPT_LOCKDEBUG,0x6e074def
  124.  .endif
  125.          .ifndef _KERNEL_OPT_MULTIPROCESSOR
  126.  .global _KERNEL_OPT_MULTIPROCESSOR
  127.  .equiv _KERNEL_OPT_MULTIPROCESSOR,0x6e074def
  128.  .endif
  129.          .ifndef _KERNEL_OPT_KSTACK_CHECK_MAGIC
  130.  .global _KERNEL_OPT_KSTACK_CHECK_MAGIC
  131.  .equiv _KERNEL_OPT_KSTACK_CHECK_MAGIC,0x6e074def
  132.  .endif
  133.          .ifndef _KERNEL_OPT_LOCKDEBUG
  134.  .global _KERNEL_OPT_LOCKDEBUG
  135.  .equiv _KERNEL_OPT_LOCKDEBUG,0x6e074def
  136.  .endif
  137.          .ifndef _KERNEL_OPT_LOCKDEBUG
  138.  .global _KERNEL_OPT_LOCKDEBUG
  139.  .equiv _KERNEL_OPT_LOCKDEBUG,0x6e074def
  140.  .endif
  141.          .ifndef _KERNEL_OPT_COMPAT_FREEBSD
  142.  .global _KERNEL_OPT_COMPAT_FREEBSD
  143.  .equiv _KERNEL_OPT_COMPAT_FREEBSD,0x6e074def
  144.  .endif
  145.          .ifndef _KERNEL_OPT_COMPAT_SUNOS
  146.  .global _KERNEL_OPT_COMPAT_SUNOS
  147.  .equiv _KERNEL_OPT_COMPAT_SUNOS,0x6e074def
  148.  .endif
  149.          .ifndef _KERNEL_OPT_SVR4_COMPAT_SOLARIS2
  150.  .global _KERNEL_OPT_SVR4_COMPAT_SOLARIS2
  151.  .equiv _KERNEL_OPT_SVR4_COMPAT_SOLARIS2,0x6e074def
  152.  .endif
  153.          .ifndef _KERNEL_OPT_COMPAT_SVR4_32
  154.  .global _KERNEL_OPT_COMPAT_SVR4_32
  155.  .equiv _KERNEL_OPT_COMPAT_SVR4_32,0x6e074def
  156.  .endif
  157.          .ifndef _KERNEL_OPT_COMPAT_SVR4
  158.  .global _KERNEL_OPT_COMPAT_SVR4
  159.  .equiv _KERNEL_OPT_COMPAT_SVR4,0x6e074def
  160.  .endif
  161.          .ifndef _KERNEL_OPT_COMPAT_43
  162.  .global _KERNEL_OPT_COMPAT_43
  163.  .equiv _KERNEL_OPT_COMPAT_43,0x6e074def
  164.  .endif
  165.          .ifndef _KERNEL_OPT_COMPAT_OSF1
  166.  .global _KERNEL_OPT_COMPAT_OSF1
  167.  .equiv _KERNEL_OPT_COMPAT_OSF1,0x6e074def
  168.  .endif
  169.          .ifndef _KERNEL_OPT_COMPAT_IBCS2
  170.  .global _KERNEL_OPT_COMPAT_IBCS2
  171.  .equiv _KERNEL_OPT_COMPAT_IBCS2,0x6e074def
  172.  .endif
  173.          .ifndef _KERNEL_OPT_MODULAR
  174.  .global _KERNEL_OPT_MODULAR
  175.  .equiv _KERNEL_OPT_MODULAR,0x6e074def
  176.  .endif
  177.          .ifndef _KERNEL_OPT_COMPAT_FREEBSD
  178.  .global _KERNEL_OPT_COMPAT_FREEBSD
  179.  .equiv _KERNEL_OPT_COMPAT_FREEBSD,0x6e074def
  180.  .endif
  181.          .ifndef _KERNEL_OPT_COMPAT_SUNOS
  182.  .global _KERNEL_OPT_COMPAT_SUNOS
  183.  .equiv _KERNEL_OPT_COMPAT_SUNOS,0x6e074def
  184.  .endif
  185.          .ifndef _KERNEL_OPT_SVR4_COMPAT_SOLARIS2
  186.  .global _KERNEL_OPT_SVR4_COMPAT_SOLARIS2
  187.  .equiv _KERNEL_OPT_SVR4_COMPAT_SOLARIS2,0x6e074def
  188.  .endif
  189.          .ifndef _KERNEL_OPT_COMPAT_SVR4_32
  190.  .global _KERNEL_OPT_COMPAT_SVR4_32
  191.  .equiv _KERNEL_OPT_COMPAT_SVR4_32,0x6e074def
  192.  .endif
  193.          .ifndef _KERNEL_OPT_COMPAT_SVR4
  194.  .global _KERNEL_OPT_COMPAT_SVR4
  195.  .equiv _KERNEL_OPT_COMPAT_SVR4,0x6e074def
  196.  .endif
  197.          .ifndef _KERNEL_OPT_COMPAT_43
  198.  .global _KERNEL_OPT_COMPAT_43
  199.  .equiv _KERNEL_OPT_COMPAT_43,0x6e074def
  200.  .endif
  201.          .ifndef _KERNEL_OPT_COMPAT_OSF1
  202.  .global _KERNEL_OPT_COMPAT_OSF1
  203.  .equiv _KERNEL_OPT_COMPAT_OSF1,0x6e074def
  204.  .endif
  205.          .ifndef _KERNEL_OPT_COMPAT_IBCS2
  206.  .global _KERNEL_OPT_COMPAT_IBCS2
  207.  .equiv _KERNEL_OPT_COMPAT_IBCS2,0x6e074def
  208.  .endif
  209.          .ifndef _KERNEL_OPT_MODULAR
  210.  .global _KERNEL_OPT_MODULAR
  211.  .equiv _KERNEL_OPT_MODULAR,0x6e074def
  212.  .endif
  213.          .ifndef _KERNEL_OPT_VMSWAP
  214.  .global _KERNEL_OPT_VMSWAP
  215.  .equiv _KERNEL_OPT_VMSWAP,0x6e074def
  216.  .endif
  217. #NO_APP
  218.         .section        .text
  219.         .align 4
  220.         .global emul_find_root
  221.         .type   emul_find_root, @function
  222.         addi     sp, sp, -12
  223.         sw       (sp+8), r11
  224.         sw       (sp+4), ra
  225.         or       r11, r2, r0
  226.         lw       r2, (r2+108)
  227.         be     r2,r0,.L4
  228. .L1:
  229.         lw       ra, (sp+4)
  230.         lw       r11, (sp+8)
  231.         addi     sp, sp, 12
  232.         b        ra
  233. .L4:
  234.         lw       r1, (r11+104)
  235.         lw       r1, (r1+12)
  236.         lw       r1, (r1+4)
  237.         be     r1,r2,.L1
  238.         orhi     r2, r0, hi(NSM_FOLLOW_NOEMULROOT)
  239.         ori      r2, r2, lo(NSM_FOLLOW_NOEMULROOT)
  240.         lw       r2, (r2+0)
  241.         addi     r3, sp, 12
  242.         calli    namei_simple_kernel
  243.         bne    r1,r0,.L1
  244.         lw       r1, (sp+12)
  245.         sw       (r11+108), r1
  246.         lw       ra, (sp+4)
  247.         lw       r11, (sp+8)
  248.         addi     sp, sp, 12
  249.         b        ra
  250.         .size   emul_find_root, .-emul_find_root
  251.         .align 4
  252.         .global emul_find_interp
  253.         .type   emul_find_interp, @function
  254.         addi     sp, sp, -84
  255.         sw       (sp+20), r11
  256.         sw       (sp+16), r12
  257.         sw       (sp+12), r13
  258.         sw       (sp+8), r14
  259.         sw       (sp+4), ra
  260.         or       r14, r1, r0
  261.         or       r1, r3, r0
  262.         or       r11, r2, r0
  263.         calli    pathbuf_create
  264.         or       r13, r1, r0
  265.         addi     r12, r0, 12
  266.         be     r1,r0,.L6
  267.         lw       r1, (r11+104)
  268.         lw       r2, (r1+12)
  269.         lw       r2, (r2+4)
  270.         be     r2,r0,.L7
  271.         lw       r1, (r11+108)
  272.         be     r1,r0,.L13
  273. .L7:
  274.         lw       r1, (r11+112)
  275.         be     r1,r0,.L8
  276.         calli    vrele
  277. .L8:
  278.         lw       r2, (r11+108)
  279.         addi     r1, r0, 64
  280.         be     r2,r0,.L9
  281.         lw       r3, (r11+104)
  282.         sw       (sp+40), r2
  283.         addi     r1, r0, 208
  284.         lw       r2, (r3+12)
  285.         lw       r2, (r2+4)
  286.         sw       (sp+56), r2
  287. .L9:
  288.         sw       (sp+64), r0
  289.         sw       (sp+68), r1
  290.         sw       (sp+24), r0
  291.         sw       (sp+28), r13
  292.         calli    kauth_cred_get
  293.         sw       (sp+72), r1
  294.         addi     r1, sp, 24
  295.         calli    namei
  296.         or       r12, r1, r0
  297.         be     r1,r0,.L10
  298.         sw       (r11+112), r0
  299. .L6:
  300.         or       r1, r12, r0
  301.         lw       ra, (sp+4)
  302.         lw       r11, (sp+20)
  303.         lw       r12, (sp+16)
  304.         lw       r13, (sp+12)
  305.         lw       r14, (sp+8)
  306.         addi     sp, sp, 84
  307.         b        ra
  308. .L10:
  309.         lw       r2, (sp+44)
  310.         or       r1, r13, r0
  311.         sw       (r11+112), r2
  312.         calli    pathbuf_destroy
  313.         or       r1, r12, r0
  314.         lw       ra, (sp+4)
  315.         lw       r11, (sp+20)
  316.         lw       r12, (sp+16)
  317.         lw       r13, (sp+12)
  318.         lw       r14, (sp+8)
  319.         addi     sp, sp, 84
  320.         b        ra
  321. .L13:
  322.         or       r1, r14, r0
  323.         or       r2, r11, r0
  324.         calli    emul_find_root
  325.         bi       .L7
  326.         .size   emul_find_interp, .-emul_find_interp
  327.         .align 4
  328.         .global emul_flags_translate
  329.         .type   emul_flags_translate, @function
  330.         lw       r4, (r1+0)
  331.         addi     r6, r0, 0
  332.         bne    r4,r0,.L17
  333.         bi       .L15
  334. .L16:
  335.         addi     r1, r1, 12
  336.         lw       r4, (r1+0)
  337.         be     r4,r0,.L15
  338. .L17:
  339.         lw       r7, (r1+4)
  340.         and      r5, r4, r2
  341.         bne    r5,r7,.L16
  342.         lw       r5, (r1+8)
  343.         not      r4, r4
  344.         addi     r1, r1, 12
  345.         and      r2, r2, r4
  346.         lw       r4, (r1+0)
  347.         or       r6, r6, r5
  348.         bne    r4,r0,.L17
  349. .L15:
  350.         be     r3,r0,.L18
  351.         sw       (r3+0), r2
  352. .L18:
  353.         or       r1, r6, r0
  354.         b        ra
  355.         .size   emul_flags_translate, .-emul_flags_translate
  356.         .section        .rodata.str1.4,"aMS",@progbits,1
  357.         .align 4
  358. .LC0:
  359.         .stringz"%s: dir offset too large on fs %s (mounted from %s)\n"
  360.         .align 4
  361. .LC1:
  362.         .stringz"%s: dir offset too large for emulated program\n"
  363.         .section        .text
  364.         .align 4
  365.         .global compat_offseterr
  366.         .type   compat_offseterr, @function
  367.         addi     sp, sp, -8
  368.         sw       (sp+8), r11
  369.         sw       (sp+4), ra
  370.         lw       r5, (r1+100)
  371.         or       r11, r2, r0
  372.         orhi     r2, r0, hi(.LC0)
  373.         addi     r4, r5, 252
  374.         or       r3, r11, r0
  375.         addi     r5, r5, 1276
  376.         addi     r1, r0, 3
  377.         ori      r2, r2, lo(.LC0)
  378.         calli    log
  379.         orhi     r1, r0, hi(.LC1)
  380.         ori      r1, r1, lo(.LC1)
  381.         or       r2, r11, r0
  382.         calli    uprintf
  383.         lw       ra, (sp+4)
  384.         lw       r11, (sp+8)
  385.         addi     sp, sp, 8
  386.         b        ra
  387.         .size   compat_offseterr, .-compat_offseterr
  388.         .section        .rodata.str1.4
  389.         .align 4
  390. .LC2:
  391.         .stringz"/usr/libexec/ld.elf_so"
  392.         .align 4
  393. .LC3:
  394.         .stringz"/libexec/ld.elf_so"
  395.         .align 4
  396. .LC4:
  397.         .stringz"%s-%s"
  398.         .align 4
  399. .LC5:
  400.         .stringz"%s"
  401.         .section        .text
  402.         .align 4
  403.         .global compat_elf_check_interp
  404.         .type   compat_elf_check_interp, @function
  405.         addi     sp, sp, -32
  406.         sw       (sp+28), r11
  407.         sw       (sp+24), r12
  408.         sw       (sp+20), r13
  409.         sw       (sp+16), r14
  410.         sw       (sp+12), r15
  411.         sw       (sp+8), r16
  412.         sw       (sp+4), ra
  413.         addi     r11, r0, 0
  414.         or       r12, r2, r0
  415.         or       r13, r1, r0
  416.         or       r14, r3, r0
  417.         be     r2,r0,.L23
  418.         lw       r1, (r1+112)
  419.         be     r1,r0,.L29
  420. .L23:
  421.         or       r1, r11, r0
  422.         lw       ra, (sp+4)
  423.         lw       r11, (sp+28)
  424.         lw       r12, (sp+24)
  425.         lw       r13, (sp+20)
  426.         lw       r14, (sp+16)
  427.         lw       r15, (sp+12)
  428.         lw       r16, (sp+8)
  429.         addi     sp, sp, 32
  430.         b        ra
  431. .L29:
  432.         or       r1, r2, r0
  433.         orhi     r2, r0, hi(.LC2)
  434.         ori      r2, r2, lo(.LC2)
  435.         calli    strcmp
  436.         be     r1,r11,.L24
  437.         orhi     r2, r0, hi(.LC3)
  438.         or       r1, r12, r0
  439.         ori      r2, r2, lo(.LC3)
  440.         calli    strcmp
  441.         bne    r1,r0,.L23
  442. .L24:
  443.         orhi     r15, r0, hi(pnbuf_cache)
  444.         ori      r15, r15, lo(pnbuf_cache)
  445.         lw       r1, (r15+0)
  446.         addi     r2, r0, 1
  447.         addi     r3, r0, 0
  448.         calli    pool_cache_get_paddr
  449.         orhi     r3, r0, hi(.LC4)
  450.         addi     r2, r0, 1024
  451.         ori      r3, r3, lo(.LC4)
  452.         or       r4, r12, r0
  453.         or       r5, r14, r0
  454.         or       r16, r1, r0
  455.         calli    snprintf
  456.         orhi     r3, r0, hi(NSM_FOLLOW_NOEMULROOT)
  457.         ori      r3, r3, lo(NSM_FOLLOW_NOEMULROOT)
  458.         lw       r2, (r3+0)
  459.         or       r1, r16, r0
  460.         addi     r3, sp, 32
  461.         calli    namei_simple_kernel
  462.         or       r11, r1, r0
  463.         be     r1,r0,.L30
  464. .L25:
  465.         lw       r1, (r15+0)
  466.         or       r2, r16, r0
  467.         addi     r3, r0, -1
  468.         calli    pool_cache_put_paddr
  469.         bi       .L23
  470. .L30:
  471.         lw       r2, (sp+32)
  472.         orhi     r3, r0, hi(.LC5)
  473.         or       r1, r12, r0
  474.         sw       (r13+112), r2
  475.         ori      r3, r3, lo(.LC5)
  476.         addi     r2, r0, 1024
  477.         or       r4, r16, r0
  478.         calli    snprintf
  479.         bi       .L25
  480.         .size   compat_elf_check_interp, .-compat_elf_check_interp
  481.         .ident  "GCC: (NetBSD nb1 20120916) 4.5.4"