From 5fdcb63c89bda2332397f4e70e9394fe61bad10c Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Tue, 27 Oct 2009 10:53:28 +0000 Subject: [PATCH] 2009-10-27 Kai Tietz * peXXigen.c (bfdver.h): Add include. (LINKER_VERSION): Do calculation based on BFD_VERSION. --- bfd/ChangeLog | 5 +++++ bfd/peXXigen.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e377ee9ab4c..1a10ea43b17 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-10-27 Kai Tietz + + * peXXigen.c (bfdver.h): Add include. + (LINKER_VERSION): Do calculation based on BFD_VERSION. + 2009-10-25 Maciej W. Rozycki * elf32-vax.c (elf_vax_relocate_section): Correct assertion. diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 6ee03a75835..63ca3c0a3db 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -62,6 +62,7 @@ #include "bfd.h" #include "libbfd.h" #include "coff/internal.h" +#include "bfdver.h" /* NOTE: it's strange to be including an architecture specific header in what's supposed to be general (to PE/PEI) code. However, that's @@ -666,7 +667,8 @@ _bfd_XXi_swap_aouthdr_out (bfd * abfd, void * in, void * out) H_PUT_16 (abfd, aouthdr_in->magic, aouthdr_out->standard.magic); -#define LINKER_VERSION 256 /* That is, 2.56 */ +/* e.g. 219510000 is linker version 2.19 */ +#define LINKER_VERSION ((short) (BFD_VERSION / 1000000)) /* This piece of magic sets the "linker version" field to LINKER_VERSION. */ -- 2.30.2