From Craig Silverstein and Cary Coutant: fix assignment of section

indexes to sections which are not associated with segments.
This commit is contained in:
Ian Lance Taylor
2007-11-07 22:33:30 +00:00
parent 214270abf3
commit 868870607e
2 changed files with 29 additions and 8 deletions

View File

@@ -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