From 868870607e2ef7584a22243d0be7bf1601dfba6d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 7 Nov 2007 22:33:30 +0000 Subject: From Craig Silverstein and Cary Coutant: fix assignment of section indexes to sections which are not associated with segments. --- gold/layout.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gold/layout.h') diff --git a/gold/layout.h b/gold/layout.h index 6c7441e..5e9871e 100644 --- a/gold/layout.h +++ b/gold/layout.h @@ -313,10 +313,15 @@ class Layout off_t set_segment_offsets(const Target*, Output_segment*, unsigned int* pshndx); - // Set the final file offsets and section indexes of all the - // sections not associated with a segment. + // Set the final file offsets of all the sections not associated + // with a segment. off_t - set_section_offsets(off_t, unsigned int *pshndx, bool do_bits_sections); + set_section_offsets(off_t, bool do_bits_sections); + + // Set the final section indexes of all the sections not associated + // with a segment. Returns the next unused index. + unsigned int + set_section_indexes(unsigned int pshndx); // Return whether SEG1 comes before SEG2 in the output file. static bool -- cgit v1.1