summaryrefslogtreecommitdiff
path: root/bfd/coff-tic54x.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-05-05 03:05:23 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-05-05 03:05:23 +0000
commit1f83552699e26b19ed56be4452e4e566ee1e3b1c (patch)
treea19d03db48f5562668dc2164900532816bad4fe7 /bfd/coff-tic54x.c
parentb62807310f8a5c09763fe806afd541ba37a6e62b (diff)
downloadbinutils-redhat-1f83552699e26b19ed56be4452e4e566ee1e3b1c.tar.gz
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/coff-tic54x.c')
-rw-r--r--bfd/coff-tic54x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/coff-tic54x.c b/bfd/coff-tic54x.c
index 3c353dae17..e1b3ccbc9a 100644
--- a/bfd/coff-tic54x.c
+++ b/bfd/coff-tic54x.c
@@ -1,5 +1,5 @@
/* BFD back-end for TMS320C54X coff binaries.
- Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2011
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2011, 2012
Free Software Foundation, Inc.
Contributed by Timothy Wall (twall@cygnus.com)
@@ -111,12 +111,12 @@ bfd_ticoff_get_section_load_page (sect)
int page;
/* Provide meaningful defaults for predefined sections. */
- if (sect == &bfd_com_section)
+ if (sect == bfd_com_section_ptr)
page = PG_DATA;
- else if (sect == &bfd_und_section
- || sect == &bfd_abs_section
- || sect == &bfd_ind_section)
+ else if (bfd_is_und_section (sect)
+ || bfd_is_abs_section (sect)
+ || bfd_is_ind_section (sect))
page = PG_PROG;
else