util: Implement PIC assembly for the aarch64.
authorGabe Black <gabeblack@google.com>
Fri, 27 Mar 2020 08:05:35 +0000 (01:05 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 9 Apr 2020 05:31:09 +0000 (05:31 +0000)
commit049aaf41f54be4ed6c612d1d1ac865508a67e691
tree09db2a612d1aaaba322ea31eb2142079ac444755
parent53b6e21c631a0bb227aae0b474884022ed191f59
util: Implement PIC assembly for the aarch64.

When accessing m5_mem and building PIC code, we need to get the address
of m5_mem out of the global offset table, and then load the value from
there. If we try to load from m5_mem directly, the assembled code has a
relocation type the linker can't handle when building a shared object.

Change-Id: Ieb19c3d17c37ef810559ee24b68886b18ddcc869
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27212
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/m5/src/m5op_arm_A64.S