summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-06-26 16:57:43 +0000
committerobrien <obrien@FreeBSD.org>2001-06-26 16:57:43 +0000
commitbc13a0c5958e501561da1e6b4a3ca1fadda52059 (patch)
tree8f1caef823fb6443d77eaf8250cbaa506e3bdf46 /contrib/binutils/bfd/elf-bfd.h
parent328e45595b12375b6d16a846069507d25086abdb (diff)
downloadFreeBSD-src-bc13a0c5958e501561da1e6b4a3ca1fadda52059.zip
FreeBSD-src-bc13a0c5958e501561da1e6b4a3ca1fadda52059.tar.gz
Import of GNU Binutils version 2.11.2.
Diffstat (limited to 'contrib/binutils/bfd/elf-bfd.h')
-rw-r--r--contrib/binutils/bfd/elf-bfd.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/binutils/bfd/elf-bfd.h b/contrib/binutils/bfd/elf-bfd.h
index 4a36629..b162290 100644
--- a/contrib/binutils/bfd/elf-bfd.h
+++ b/contrib/binutils/bfd/elf-bfd.h
@@ -1,6 +1,6 @@
/* BFD back-end data structures for ELF files.
- Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999, 2000 Free Software
- Foundation, Inc.
+ Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ Free Software Foundation, Inc.
Written by Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
@@ -27,6 +27,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "elf/external.h"
#include "bfdlink.h"
+/* The number of entries in a section is its size divided by the size
+ of a single entry. This is normally only applicaable to reloc and
+ symbol table sections. */
+#define NUM_SHDR_ENTRIES(shdr) ((shdr)->sh_size / (shdr)->sh_entsize)
+
/* If size isn't specified as 64 or 32, NAME macro should fail. */
#ifndef NAME
#if ARCH_SIZE==64
OpenPOWER on IntegriCloud