summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2021-02-12 23:13:56 +0100
committerYves Orton <demerphq@gmail.com>2021-02-13 09:13:40 +0100
commitf43079cb514e3d0be0036424695438ae3fb58451 (patch)
treea695e7b888b0a068c86b99c2dd390b5f2cc3ee6a /t
parent64901762e5e760756c8a2f3d72e81a16d2213c53 (diff)
downloadperl-f43079cb514e3d0be0036424695438ae3fb58451.tar.gz
[#18555] Ensure that PL_hash_seed and PL_hash_state are word aligned
Replace PL_hash_seed and PL_hash_state with PL_hash_seed_w and PL_hash_state_w, and replace the old vars with defines that cast their replacements appropriately. This should force linkers to word align the data.
Diffstat (limited to 't')
-rw-r--r--t/porting/libperl.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/porting/libperl.t b/t/porting/libperl.t
index 9effa9ae1b..c2d59f20ac 100644
--- a/t/porting/libperl.t
+++ b/t/porting/libperl.t
@@ -341,7 +341,7 @@ if ( !$symbols{data}{common} ) {
$symbols{data}{common} = $symbols{data}{bss};
}
-ok($symbols{data}{common}{PL_hash_seed}{'globals.o'}, "has PL_hash_seed");
+ok($symbols{data}{common}{PL_hash_seed_w}{'globals.o'}, "has PL_hash_seed_w");
ok($symbols{data}{data}{PL_ppaddr}{'globals.o'}, "has PL_ppaddr");
# See the comments in the beginning for what "undefined symbols"