diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2018-07-16 18:21:29 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2018-07-16 18:21:29 +0000 |
commit | 4802a2cb544357ed2ce77a7df74813c85c1f69b6 (patch) | |
tree | 0a9792632f370f5ce2242e0bc1d0ade620448355 /usr.bin/col | |
parent | a9dc38def44742322a94bce24a34755bb8b7754f (diff) | |
download | src-4802a2cb544357ed2ce77a7df74813c85c1f69b6.tar.gz src-4802a2cb544357ed2ce77a7df74813c85c1f69b6.zip |
Don't use the static keyword with DPCPU defines in arm64 modules.
On arm64 compiler will create PC-relative loads and stores for static data.
This means it doesn't emit a relocation. Unfortunately the in-kernel linker
expects there to be one for DPCPU defines so it can modify its value so the
code will use the correct DPCPU region.
To workaround the lack of a relocation with static data remove it when
building modules on arm64. The kernel is unaffected as it doesn't rely on
modifying these relocations to find the data.
PR: 225684
Reported by: Johannes Lundberg <johalun0@gmail.com>
Reported by: Jose Luis Duran <jlduran@gmail.com>
Reported by: Greg V <greg@unrelenting.technology>
Reviewed by: bz
Sponsored by: ABT Systems Ltd
Differential Revision: https://reviews.freebsd.org/D16145
Notes
Notes:
svn path=/head/; revision=336349
Diffstat (limited to 'usr.bin/col')
0 files changed, 0 insertions, 0 deletions