aboutsummaryrefslogtreecommitdiff
path: root/bfd/peicode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-05-05 03:05:32 +0000
committerAlan Modra <amodra@gmail.com>2012-05-05 03:05:32 +0000
commit45dfa85a1ee44000d43abb7945a4aa7631707563 (patch)
tree4fbcbb79f675fb33e849112175102446d2fc8e64 /bfd/peicode.h
parent3ea17611f9c0a265d51cbdd4d0989b12c11aaad4 (diff)
downloadgdb-45dfa85a1ee44000d43abb7945a4aa7631707563.zip
gdb-45dfa85a1ee44000d43abb7945a4aa7631707563.tar.gz
gdb-45dfa85a1ee44000d43abb7945a4aa7631707563.tar.bz2
Replace all uses of bfd_abs_section, bfd_com_section, bfd_und_section
and bfd_ind_section with their _ptr variants, or use corresponding bfd_is_* macros.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r--bfd/peicode.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index 5d10029..e835792 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -1,6 +1,7 @@
/* Support for the generic parts of PE/PEI, for BFD.
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+ Free Software Foundation, Inc.
Written by Cygnus Solutions.
This file is part of BFD, the Binary File Descriptor library.
@@ -545,7 +546,7 @@ pe_ILF_make_a_symbol (pe_ILF_vars * vars,
sprintf (vars->string_ptr, "%s%s", prefix, symbol_name);
if (section == NULL)
- section = (asection_ptr) & bfd_und_section;
+ section = bfd_und_section_ptr;
/* Initialise the external symbol. */
H_PUT_32 (vars->abfd, vars->string_ptr - vars->string_table,