git: OpenLIBM: local modification - elf notes on assembly

John Marino marino at crater.dragonflybsd.org
Sun Jul 12 13:18:54 PDT 2015


commit a27bb01fb90c87959b0c0dfacf7dd85d1308a35f
Author: John Marino <draco at marino.st>
Date:   Sun Jul 12 21:06:59 2015 +0100

    OpenLIBM: local modification - elf notes on assembly
    
    All object files need a .note.GNU-stack elf section in order to preserve
    the ability for the resulting program to run on a non-executable stack.
    If a single object is missing this section, the linker will run the program
    on an executable stack instead which is less secure.
    
    The FreeBSD and NetBSD libm assembly files have these notes, but OpenBSD
    does not use them, thus the need for a local modification.

Summary of changes:
 contrib/openbsd_libm/arch/amd64/e_acos.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/e_asin.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/e_atan2.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/e_atan2f.S       | 3 +++
 contrib/openbsd_libm/arch/amd64/e_exp.S          | 3 +++
 contrib/openbsd_libm/arch/amd64/e_fmod.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/e_log.S          | 3 +++
 contrib/openbsd_libm/arch/amd64/e_log10.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/e_remainder.S    | 3 +++
 contrib/openbsd_libm/arch/amd64/e_remainderf.S   | 3 +++
 contrib/openbsd_libm/arch/amd64/e_scalb.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/e_sqrt.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/e_sqrtf.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/e_sqrtl.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/s_atan.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/s_atanf.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/s_ceil.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/s_ceilf.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/s_copysign.S     | 3 +++
 contrib/openbsd_libm/arch/amd64/s_copysignf.S    | 3 +++
 contrib/openbsd_libm/arch/amd64/s_cos.S          | 3 +++
 contrib/openbsd_libm/arch/amd64/s_cosf.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/s_floor.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/s_floorf.S       | 3 +++
 contrib/openbsd_libm/arch/amd64/s_ilogb.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/s_ilogbf.S       | 3 +++
 contrib/openbsd_libm/arch/amd64/s_llrint.S       | 2 ++
 contrib/openbsd_libm/arch/amd64/s_llrintf.S      | 2 ++
 contrib/openbsd_libm/arch/amd64/s_log1p.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/s_log1pf.S       | 3 +++
 contrib/openbsd_libm/arch/amd64/s_logb.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/s_logbf.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/s_lrint.S        | 2 ++
 contrib/openbsd_libm/arch/amd64/s_lrintf.S       | 2 ++
 contrib/openbsd_libm/arch/amd64/s_rint.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/s_rintf.S        | 3 +++
 contrib/openbsd_libm/arch/amd64/s_scalbnf.S      | 2 ++
 contrib/openbsd_libm/arch/amd64/s_significand.S  | 3 +++
 contrib/openbsd_libm/arch/amd64/s_significandf.S | 3 +++
 contrib/openbsd_libm/arch/amd64/s_sin.S          | 3 +++
 contrib/openbsd_libm/arch/amd64/s_sinf.S         | 3 +++
 contrib/openbsd_libm/arch/amd64/s_tan.S          | 3 +++
 contrib/openbsd_libm/arch/amd64/s_tanf.S         | 3 +++
 43 files changed, 124 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a27bb01fb90c87959b0c0dfacf7dd85d1308a35f


-- 
DragonFly BSD source repository



More information about the Commits mailing list