Skip to content

arch: enable packed relative relocation via DT_RELR #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ HWCAPS=('x86-64-v2' 'x86-64-v3' 'x86-64-v4')
# Default -march and μarch specific tuning.
# No need to reference CFLAGS_COMMON_ARCH_BASE, it will be concatenated.
CFLAGS_COMMON_ARCH=('-march=x86-64' '-mtune=znver4' '-msse2' '-mno-omit-leaf-frame-pointer')
LDFLAGS_COMMON_ARCH=('-Wl,-z,pack-relative-relocs')
RUSTFLAGS_COMMON_ARCH=('-Ctarget-cpu=x86-64')

# HWCAPS subtargets in x86-64 are based on the microarchitecture levels
Expand Down
1 change: 1 addition & 0 deletions arch/arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
##arch/arm64.sh: Build definitions for arm64.
##@copyright GPL-2.0+
CFLAGS_COMMON_ARCH=('-march=armv8-a' '-mtune=generic' '-mno-omit-leaf-frame-pointer')
LDFLAGS_COMMON_ARCH=('-Wl,-z,pack-relative-relocs')
RUSTFLAGS_COMMON_ARCH=('-Ctarget-cpu=generic')
# LDFLAGS_COMMON_CROSS=('-Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/var/ab/cross-root/arm64/usr/lib -L/var/ab/cross-root/arm64/usr/lib ')
1 change: 1 addition & 0 deletions arch/loongarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ else
CFLAGS_COMMON_ARCH+=('-march=loongarch64' '-mtune=la464')
fi

LDFLAGS_COMMON_ARCH=('-Wl,-z,pack-relative-relocs')
RUSTFLAGS_COMMON_ARCH=('-Ctarget-cpu=generic-la64' '-Ctarget-feature=+lsx,+d' '-Clink-arg=-mabi=lp64d')
1 change: 1 addition & 0 deletions arch/ppc64el.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
##arch/ppc64el.sh: Build definitions for ppc64el.
##@copyright GPL-2.0+
CFLAGS_COMMON_ARCH_BASE=('-msecure-plt' '-mabi=ieeelongdouble')
LDFLAGS_COMMON_ARCH=('-Wl,-z,pack-relative-relocs')
CFLAGS_COMMON_ARCH=('-mcpu=power8' '-mtune=power10' '-mvsx')
RUSTFLAGS_COMMON_ARCH=('-Ctarget-cpu=pwr8' '-Ctarget-feature=+vsx,+altivec,+secure-plt' '-Clink-arg=-mabi=ieeelongdouble')

Expand Down