]> git.ipfire.org Git - thirdparty/gcc.git/commit
libbacktrace: support ASLR on Windows
authorIan Lance Taylor <iant@golang.org>
Thu, 30 Nov 2023 19:24:08 +0000 (11:24 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 30 Nov 2023 19:24:57 +0000 (11:24 -0800)
commitc6f7253bcc9e792eb045940b36c113969e47e383
tree2d4356cccd8866534c0eaf1242b0d74cf5b9cc2e
parentdf8958e6bc5d050dab8bdc5954c1632fb0e98d18
libbacktrace: support ASLR on Windows

Patch from Björn Schäpers.

* pecoff.c: Include <windows.h> if available.
(coff_add): On Windows call GetModuleHandle to get base address.
libbacktrace/pecoff.c