From 45dfa85a1ee44000d43abb7945a4aa7631707563 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 5 May 2012 03:05:32 +0000 Subject: 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. --- binutils/ChangeLog | 4 ++++ binutils/dlltool.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 693b100..30697c0 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2012-05-05 Alan Modra + + * dlltool.c (make_one_lib_file): Use bfd_und_section_ptr. + 2012-05-03 Sean Keys * readelf.c: Add support for XGATE. diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 0c46c3a..6ed0f7a 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -2530,7 +2530,7 @@ make_one_lib_file (export_type *exp, int i, int delay) iname_lab = bfd_make_empty_symbol (abfd); iname_lab->name = head_label; - iname_lab->section = (asection *) &bfd_und_section; + iname_lab->section = bfd_und_section_ptr; iname_lab->flags = 0; iname_lab->value = 0; @@ -2563,7 +2563,7 @@ make_one_lib_file (export_type *exp, int i, int delay) toc_symbol = bfd_make_empty_symbol (abfd); toc_symbol->name = make_label (".", "toc"); - toc_symbol->section = (asection *)&bfd_und_section; + toc_symbol->section = bfd_und_section_ptr; toc_symbol->flags = BSF_GLOBAL; toc_symbol->value = 0; -- cgit v1.1