From 9cfa1691714c44991fc04927b85b8b17764bf388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 11 Oct 2022 08:59:42 +0300 Subject: [PATCH] squash: ld: Fix writing PDB files with an implicit name --- ld/emultempl/pe.em | 2 +- ld/emultempl/pep.em | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 202e80898db..907259535b7 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -1106,7 +1106,7 @@ gld${EMULATION_NAME}_after_parse (void) einfo (_("%P: warning: --export-dynamic is not supported for PE " "targets, did you mean --export-all-symbols?\n")); - if (pdb_name && emit_build_id == NULL) + if (pdb && emit_build_id == NULL) emit_build_id = xstrdup (DEFAULT_BUILD_ID_STYLE); set_entry_point (); diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em index 6381ead9021..67280631528 100644 --- a/ld/emultempl/pep.em +++ b/ld/emultempl/pep.em @@ -1049,7 +1049,7 @@ gld${EMULATION_NAME}_after_parse (void) einfo (_("%P: warning: --export-dynamic is not supported for PE+ " "targets, did you mean --export-all-symbols?\n")); - if (pdb_name && emit_build_id == NULL) + if (pdb && emit_build_id == NULL) emit_build_id = xstrdup (DEFAULT_BUILD_ID_STYLE); set_entry_point (); -- 2.25.1