1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 10:27:48 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-19 17:10:58 +09:00
parent ab9548c768
commit b14e03db02
2 changed files with 5 additions and 2 deletions

View File

@ -753,9 +753,9 @@ int main(int argc, char **argv) {
out::chunks.push_back(out::shdr);
// Set section indices.
for (int i = 0; i < out::chunks.size(); i++)
for (int i = 0, shndx = 1; i < out::chunks.size(); i++)
if (out::chunks[i]->kind != OutputChunk::HEADER)
out::chunks[i]->shndx = i + 1;
out::chunks[i]->shndx = shndx++;
// Now that we have computed sizes for all sections and assigned
// section indices to them, so we can fix section header contents

View File

@ -25,3 +25,6 @@ defm trace_symbol: Eq<"trace-symbol", "Trace references to symbol">;
def trace: F<"trace">, HelpText<"Print the name of each input file">;
def filler: Separate<["--", "-"], "filler">;
def: F<"as-needed">;
def: F<"no-as-needed">;