bsd.linker.mk (dc3c6ad63c9b9f23cea1cd047288972bfcf6049b) bsd.linker.mk (0869dceb9d2642defe8d34b09d65145cb3f81e09)
1# $FreeBSD$
2
3# Setup variables for the linker.
4#
5# LINKER_TYPE is the major type of linker. Currently binutils and lld support
6# automatic detection.
7#
8# LINKER_VERSION is a numeric constant equal to:

--- 72 unchanged lines hidden (view full) ---

81 awk -F. '{print $$1 * 10000 + $$2 * 100 + $$3;}'
82.undef _ld_version
83.undef _v
84${X_}LINKER_FEATURES=
85.if ${${X_}LINKER_TYPE} != "bfd" || ${${X_}LINKER_VERSION} > 21750
86${X_}LINKER_FEATURES+= build-id
87${X_}LINKER_FEATURES+= ifunc
88.endif
1# $FreeBSD$
2
3# Setup variables for the linker.
4#
5# LINKER_TYPE is the major type of linker. Currently binutils and lld support
6# automatic detection.
7#
8# LINKER_VERSION is a numeric constant equal to:

--- 72 unchanged lines hidden (view full) ---

81 awk -F. '{print $$1 * 10000 + $$2 * 100 + $$3;}'
82.undef _ld_version
83.undef _v
84${X_}LINKER_FEATURES=
85.if ${${X_}LINKER_TYPE} != "bfd" || ${${X_}LINKER_VERSION} > 21750
86${X_}LINKER_FEATURES+= build-id
87${X_}LINKER_FEATURES+= ifunc
88.endif
89.if ${${X_}LINKER_TYPE} == "bfd" && ${${X_}LINKER_VERSION} > 21750
90${X_}LINKER_FEATURES+= riscv-relaxations
91.endif
89.if ${${X_}LINKER_TYPE} == "lld" && ${${X_}LINKER_VERSION} >= 60000
90${X_}LINKER_FEATURES+= retpoline
91.endif
92.endif
93.else
94# Use LD's values
95X_LINKER_TYPE= ${LINKER_TYPE}
96X_LINKER_VERSION= ${LINKER_VERSION}

--- 17 unchanged lines hidden ---
92.if ${${X_}LINKER_TYPE} == "lld" && ${${X_}LINKER_VERSION} >= 60000
93${X_}LINKER_FEATURES+= retpoline
94.endif
95.endif
96.else
97# Use LD's values
98X_LINKER_TYPE= ${LINKER_TYPE}
99X_LINKER_VERSION= ${LINKER_VERSION}

--- 17 unchanged lines hidden ---