diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-07 22:33:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-07 22:33:30 +0000 |
commit | 868870607e2ef7584a22243d0be7bf1601dfba6d (patch) | |
tree | fcee879680f665f20ea72e93b56a277da082823e /gold/layout.h | |
parent | 214270abf389bb2aa4584423353a7da2a1e6b463 (diff) | |
download | gdb-868870607e2ef7584a22243d0be7bf1601dfba6d.zip gdb-868870607e2ef7584a22243d0be7bf1601dfba6d.tar.gz gdb-868870607e2ef7584a22243d0be7bf1601dfba6d.tar.bz2 |
From Craig Silverstein and Cary Coutant: fix assignment of section
indexes to sections which are not associated with segments.
Diffstat (limited to 'gold/layout.h')
-rw-r--r-- | gold/layout.h | 11 |
1 files changed, 8 insertions, 3 deletions
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 |