From 39ef612aa193cc6e954ac5a01574300ccd4b7ef9 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 19 Nov 2018 13:11:56 -0500 Subject: [PATCH] fix regression in access to optopt object commit b9410061e2ad6fe91bb3910c3adc7d4a315b7ce9 inadvertently omitted optopt from the "dynamic list", causing it to be split into separate objects that don't share their value if the main program contains a copy relocation for it (for non-PIE executables that access it, and some PIE ones, depending on arch and toolchain versions/options). --- dynamic.list | 1 + 1 file changed, 1 insertion(+) diff --git a/dynamic.list b/dynamic.list index 686f8eb4..ee0d363b 100644 --- a/dynamic.list +++ b/dynamic.list @@ -28,6 +28,7 @@ __signgam; optarg; optind; opterr; +optopt; optreset; __optreset; -- 2.25.1