aboutsummaryrefslogtreecommitdiff
path: root/bfd/libelf.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-07-22 18:53:23 +0000
committerIan Lance Taylor <ian@airs.com>1994-07-22 18:53:23 +0000
commit7c6da9cade1c47d725fac11ddc9aaf921f85c22d (patch)
tree50cc77e306108de96cf41f87a4c731bdbae277c6 /bfd/libelf.h
parent36c6e8c37fc1ebc698b8d260c6ef09fe2d18ea69 (diff)
downloadgdb-7c6da9cade1c47d725fac11ddc9aaf921f85c22d.zip
gdb-7c6da9cade1c47d725fac11ddc9aaf921f85c22d.tar.gz
gdb-7c6da9cade1c47d725fac11ddc9aaf921f85c22d.tar.bz2
* aoutx.h (aout_link_check_ar_symbols): When changing a symbol to
common, set the alignment. (aout_link_add_symbols): Restrict the alignment of a common symbol to the alignment power given by the architecture. * elf.c (_bfd_elf_link_hash_newfunc): Don't initialize align. Do initialize copy_offset. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Use copy_offset field rather than align field. Get alignment using bfd_log2 rather than switch. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise. * elf32-i386.c (elf_i386_finish_dynamic_symbol): Use copy_offset, not align. * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Likewise.
Diffstat (limited to 'bfd/libelf.h')
-rw-r--r--bfd/libelf.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/libelf.h b/bfd/libelf.h
index cc6d8b8..f14ac95 100644
--- a/bfd/libelf.h
+++ b/bfd/libelf.h
@@ -77,9 +77,6 @@ struct elf_link_hash_entry
/* Symbol size. */
bfd_size_type size;
- /* Symbol alignment (common symbols only). */
- bfd_size_type align;
-
/* Symbol index as a dynamic symbol. Initialized to -1, and remains
-1 if this is not a dynamic symbol. */
long dynindx;
@@ -92,6 +89,10 @@ struct elf_link_hash_entry
one. Otherwise it is NULL. */
struct elf_link_hash_entry *weakdef;
+ /* If we need to generate a COPY reloc, the processor specific
+ backend uses this to hold the offset into the reloc section. */
+ bfd_vma copy_offset;
+
/* Symbol type (STT_NOTYPE, STT_OBJECT, etc.). */
char type;