Ticket #8826: boost-1.54.0-context-execstack.patch

File boost-1.54.0-context-execstack.patch, 7.0 KB (added by pmachata@…, 9 years ago)

A fix

  • boost-1.54.0/libs/context/src/asm/jump_arm_aapcs_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/jump_arm_aapcs_elf_gas.S~ boost-1.54.0/libs/context/src/asm/jump_arm_aapcs_elf_gas.S
    old new jump_fcontext:  
    7171                                    @ and as first arg in context function
    7272    ldmia   a2, {v1-v8,sp-pc}       @ restore v1-V8,SP-PC
    7373.size jump_fcontext,.-jump_fcontext
     74
     75/* Mark that we don't need executable stack.  */
     76.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/jump_i386_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/jump_i386_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/jump_i386_sysv_elf_gas.S
    old new jump_fcontext:  
    7070
    7171    jmp     *%edx                   /* indirect jump to context */
    7272.size jump_fcontext,.-jump_fcontext
     73
     74/* Mark that we don't need executable stack.  */
     75.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/jump_ppc32_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/jump_ppc32_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/jump_ppc32_sysv_elf_gas.S
    old new jump_fcontext:  
    178178
    179179    bctr                        # jump to context
    180180.size jump_fcontext, .-jump_fcontext
     181
     182/* Mark that we don't need executable stack.  */
     183.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/jump_ppc64_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/jump_ppc64_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/jump_ppc64_sysv_elf_gas.S
    old new jump_fcontext:  
    199199
    200200    bctr                        # jump to context
    201201.size .jump_fcontext, .-.jump_fcontext
     202
     203/* Mark that we don't need executable stack.  */
     204.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/jump_x86_64_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/jump_x86_64_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/jump_x86_64_sysv_elf_gas.S
    old new jump_fcontext:  
    8080
    8181    jmp      *%rcx                  /* indirect jump to context */
    8282.size jump_fcontext,.-jump_fcontext
     83
     84/* Mark that we don't need executable stack.  */
     85.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/make_arm_aapcs_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/make_arm_aapcs_elf_gas.S~ boost-1.54.0/libs/context/src/asm/make_arm_aapcs_elf_gas.S
    old new finish:  
    7474    mov     a1, #0          @ exit code is zero
    7575    bl      _exit@PLT       @ exit application
    7676.size make_fcontext,.-make_fcontext
     77
     78/* Mark that we don't need executable stack.  */
     79.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/make_i386_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/make_i386_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/make_i386_sysv_elf_gas.S
    old new finish:  
    7575    call   _exit@PLT                    /* exit application */
    7676    hlt
    7777.size make_fcontext,.-make_fcontext
     78
     79/* Mark that we don't need executable stack.  */
     80.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/make_mips32_o32_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/make_mips32_o32_elf_gas.S~ boost-1.54.0/libs/context/src/asm/make_mips32_o32_elf_gas.S
    old new finish:  
    8383    jalr    $t9                       # exit application
    8484.end make_fcontext
    8585.size make_fcontext, .-make_fcontext
     86
     87/* Mark that we don't need executable stack.  */
     88.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/make_ppc32_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/make_ppc32_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/make_ppc32_sysv_elf_gas.S
    old new finish:  
    109109    li      %r3,  0             # exit code is zero
    110110    bl      _exit@plt           # exit application
    111111.size make_fcontext, .-make_fcontext
     112
     113/* Mark that we don't need executable stack.  */
     114.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/make_ppc64_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/make_ppc64_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/make_ppc64_sysv_elf_gas.S
    old new finish:  
    131131    bl      _exit               # exit application
    132132    nop
    133133.size .make_fcontext, .-.make_fcontext
     134
     135/* Mark that we don't need executable stack.  */
     136.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/make_sparc64_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/make_sparc64_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/make_sparc64_sysv_elf_gas.S
    old new finish:  
    8484     nop
    8585
    8686.size make_fcontext,.-make_fcontext
     87
     88/* Mark that we don't need executable stack.  */
     89.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/make_sparc_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/make_sparc_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/make_sparc_sysv_elf_gas.S
    old new finish:  
    8080     nop
    8181
    8282.size make_fcontext,.-make_fcontext
     83
     84/* Mark that we don't need executable stack.  */
     85.section .note.GNU-stack,"",@progbits
  • boost-1.54.0/libs/context/src/asm/make_x86_64_sysv_elf_gas.S

    diff -up boost-1.54.0/libs/context/src/asm/make_x86_64_sysv_elf_gas.S~ boost-1.54.0/libs/context/src/asm/make_x86_64_sysv_elf_gas.S
    old new finish:  
    7272    hlt
    7373.size make_fcontext,.-make_fcontext
    7474
     75/* Mark that we don't need executable stack.  */
     76.section .note.GNU-stack,"",@progbits