patch-src_host_buildvm_asm_c 720 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-src_host_buildvm_asm_c,v 1.4 2017/05/05 10:21:47 jsg Exp $
  2. .gnu_attribute requires binutils 2.18
  3. --- src/host/buildvm_asm.c.orig Tue May 2 04:11:00 2017
  4. +++ src/host/buildvm_asm.c Tue May 2 11:40:27 2017
  5. @@ -290,12 +290,14 @@ void emit_asm(BuildCtx *ctx)
  6. #if !(LJ_TARGET_PS3 || LJ_TARGET_PSVITA)
  7. fprintf(ctx->fp, "\t.section .note.GNU-stack,\"\"," ELFASM_PX "progbits\n");
  8. #endif
  9. +#if 0
  10. #if LJ_TARGET_PPCSPE
  11. /* Soft-float ABI + SPE. */
  12. fprintf(ctx->fp, "\t.gnu_attribute 4, 2\n\t.gnu_attribute 8, 3\n");
  13. #elif LJ_TARGET_PPC && !LJ_TARGET_PS3
  14. /* Hard-float ABI. */
  15. fprintf(ctx->fp, "\t.gnu_attribute 4, 1\n");
  16. +#endif
  17. #endif
  18. /* fallthrough */
  19. case BUILD_coffasm: