summaryrefslogtreecommitdiff
path: root/bfd/libcoff.h
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2009-03-14 09:32:33 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2009-03-14 09:32:33 +0000
commitf244b748d7e504055f0ec537a81941e1aaa4781f (patch)
tree77c95f790e0cc3c0bb79dd21d318b33af42a5922 /bfd/libcoff.h
parentf076030daf4e913dbb744f622c9ae2d8e6af9b63 (diff)
downloadbinutils-redhat-f244b748d7e504055f0ec537a81941e1aaa4781f.tar.gz
bfd/
* libcoff-in.h (xcoff_tdata): Add a lineno_counts field. * libcoff.h: Regenerate. * xcofflink.c (xcoff_link_add_symbols): Record per-symbol line-number counts in the bfd's lineno_counts field. Don't keep per-csect line-number counts. (xcoff_sweep): Don't update per-csect line-number counts. (bfd_xcoff_size_dynamic_sections): Count the number of line-number entries in each output section. (xcoff_link_input_bfd): Get the number of line numbers from the bfd's lineno_counts field, rather than recalculating it from scratch. Fix the range check when updating C_BINCL and C_EINCL symbols. (_bfd_xcoff_bfd_final_link): Don't count the output line numbers here. Don't expect csects to have line-number counts. ld/testsuite/ * ld-powerpc/aix-lineno-1.s, ld-powerpc/aix-lineno-1.txt, ld-powerpc/aix-lineno-1a.dd, ld-powerpc/aix-lineno-1a.nd, ld-powerpc/aix-lineno-1b.dd, ld-powerpc/aix-lineno-1b.nd: New tests. * ld-powerpc/aix52.exp: Run them. Copy aix-lineno-1.txt to tmpdir.
Diffstat (limited to 'bfd/libcoff.h')
-rw-r--r--bfd/libcoff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index 98cbd3d05d..f963ce163c 100644
--- a/bfd/libcoff.h
+++ b/bfd/libcoff.h
@@ -170,6 +170,7 @@ struct xcoff_tdata
/* Used by the XCOFF backend linker. */
asection **csects;
long *debug_indices;
+ unsigned int *lineno_counts;
unsigned int import_file_id;
};