File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,35 @@ jobs:
154
154
shell : bash
155
155
run : pacman -Syyu --noconfirm
156
156
157
+ - name : rebase `.dll` base addresses
158
+ if : env.ARCHITECTURE == 'i686' && !contains('msys2-runtime gnupg', env.PACKAGE_TO_BUILD)
159
+ shell : powershell
160
+ run : |
161
+ cd C:\git-sdk-32-full
162
+ if (!$?) { exit(1); }
163
+
164
+ $env:MSYSTEM = "MINGW32"
165
+ $env:PATH = "$(Get-Location)\usr\bin;" + $env:PATH
166
+ $env:MSYS2_PATH_TYPE = "minimal"
167
+
168
+ # Disable pacman's post-transaction hook that would mess everything up, if it exists
169
+ sh.exe -lc "set -x && rm -f /usr/share/libalpm/hooks/rebase.hook"
170
+
171
+ sh.exe -lc "set -x && find /usr/lib/perl5/*_perl -name \*.dll >perl-dlls.txt"
172
+ type perl-dlls.txt
173
+ dash -x /usr/bin/rebaseall -p -T perl-dlls.txt
174
+
175
+ # Work around for:
176
+ # - address space needed by 'Cwd.dll' is already occupied
177
+ # - address space needed by 'Dumper.dll' is already occupied
178
+ # etc
179
+ bash -lc "set -x && rebase -b 0x61500000 /usr/lib/perl5/core_perl/auto/*/{*,*/*}.dll"
180
+ # Work around for:
181
+ # - address space needed by 'Cwd.dll' is already occupied
182
+ bash -lc "set -x && rebase -v -b 0x63f00000 /usr/lib/perl5/core_perl/auto/Cwd/Cwd.dll"
183
+ # verify the base address
184
+ bash -lc "set -x && rebase -v -i /usr/lib/perl5/core_perl/auto/Cwd/Cwd.dll"
185
+
157
186
- name : Get GPG key(s)
158
187
shell : bash
159
188
env :
You can’t perform that action at this time.
0 commit comments