mirror of
https://github.com/rui314/mold.git
synced 2024-09-22 10:27:48 +03:00
temporary
This commit is contained in:
parent
ab9548c768
commit
b14e03db02
4
main.cc
4
main.cc
@ -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
|
||||
|
@ -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">;
|
Loading…
Reference in New Issue
Block a user