Skip to content

Commit 39ef612

Browse files
committed
fix regression in access to optopt object
commit b941006 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).
1 parent 122d67f commit 39ef612

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dynamic.list

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ __signgam;
2828
optarg;
2929
optind;
3030
opterr;
31+
optopt;
3132
optreset;
3233
__optreset;
3334

0 commit comments

Comments
 (0)