Skip to content

Instantly share code, notes, and snippets.

@develCuy
Last active July 11, 2020 05:38
Show Gist options
  • Save develCuy/4eeda523666dd2b8548c061b38500d99 to your computer and use it in GitHub Desktop.
Save develCuy/4eeda523666dd2b8548c061b38500d99 to your computer and use it in GitHub Desktop.
Devcoin wallet compile, patch for boost 1.68.0
diff --git a/libs/context/src/asm/jump_x86_64_sysv_elf_gas.S b/libs/context/src/asm/jump_x86_64_sysv_elf_gas.S
index a25e81c..2d43d35 100644
--- a/libs/context/src/asm/jump_x86_64_sysv_elf_gas.S
+++ b/libs/context/src/asm/jump_x86_64_sysv_elf_gas.S
@@ -26,7 +26,7 @@
.text
.globl jump_fcontext
-.type jump_fcontext,@function
+#.type jump_fcontext,@function
.align 16
jump_fcontext:
leaq -0x38(%rsp), %rsp /* prepare stack */
@@ -74,7 +74,7 @@ jump_fcontext:
/* indirect jump to context */
jmp *%r8
-.size jump_fcontext,.-jump_fcontext
+#.size jump_fcontext,.-jump_fcontext
/* Mark that we don't need executable stack. */
-.section .note.GNU-stack,"",%progbits
+#.section .note.GNU-stack,"",%progbits
diff --git a/libs/context/src/asm/make_x86_64_sysv_elf_gas.S b/libs/context/src/asm/make_x86_64_sysv_elf_gas.S
index 25a0c00..0f6e63c 100644
--- a/libs/context/src/asm/make_x86_64_sysv_elf_gas.S
+++ b/libs/context/src/asm/make_x86_64_sysv_elf_gas.S
@@ -26,7 +26,7 @@
.text
.globl make_fcontext
-.type make_fcontext,@function
+#.type make_fcontext,@function
.align 16
make_fcontext:
/* first arg of make_fcontext() == top of context-stack */
@@ -75,7 +75,7 @@ finish:
/* exit application */
call _exit@PLT
hlt
-.size make_fcontext,.-make_fcontext
+#.size make_fcontext,.-make_fcontext
/* Mark that we don't need executable stack. */
-.section .note.GNU-stack,"",%progbits
+#.section .note.GNU-stack,"",%progbits
diff --git a/libs/context/src/asm/ontop_x86_64_sysv_elf_gas.S b/libs/context/src/asm/ontop_x86_64_sysv_elf_gas.S
index c4402cc..8aca8d4 100644
--- a/libs/context/src/asm/ontop_x86_64_sysv_elf_gas.S
+++ b/libs/context/src/asm/ontop_x86_64_sysv_elf_gas.S
@@ -26,7 +26,7 @@
.text
.globl ontop_fcontext
-.type ontop_fcontext,@function
+#.type ontop_fcontext,@function
.align 16
ontop_fcontext:
/* preserve ontop-function in R8 */
@@ -77,7 +77,7 @@ ontop_fcontext:
/* indirect jump to context */
jmp *%r8
-.size ontop_fcontext,.-ontop_fcontext
+#.size ontop_fcontext,.-ontop_fcontext
/* Mark that we don't need executable stack. */
-.section .note.GNU-stack,"",%progbits
+#.section .note.GNU-stack,"",%progbits
@develCuy
Copy link
Author

develCuy commented Jul 9, 2020

The patch belongs to: devcoin/core#80 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment