aboutsummaryrefslogtreecommitdiff
path: root/bfd/peXXigen.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2009-10-27 10:53:28 +0000
committerKai Tietz <kai.tietz@onevision.com>2009-10-27 10:53:28 +0000
commit5fdcb63c89bda2332397f4e70e9394fe61bad10c (patch)
tree82c4d7970029717a6a8fcccc17f12650c10e6395 /bfd/peXXigen.c
parenta2b2318d998d2829a7af02d3a8208f136b47578e (diff)
downloadgdb-5fdcb63c89bda2332397f4e70e9394fe61bad10c.zip
gdb-5fdcb63c89bda2332397f4e70e9394fe61bad10c.tar.gz
gdb-5fdcb63c89bda2332397f4e70e9394fe61bad10c.tar.bz2
2009-10-27 Kai Tietz <kai.tietz@onevision.com>
* peXXigen.c (bfdver.h): Add include. (LINKER_VERSION): Do calculation based on BFD_VERSION.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r--bfd/peXXigen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index 6ee03a7..63ca3c0 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. */