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-04 18:47:13 +09:00
parent 008783851a
commit e9f334b60b
2 changed files with 4 additions and 1 deletions

View File

@ -642,6 +642,7 @@ int main(int argc, char **argv) {
error("-o option is missing");
config.print_map = args.hasArg(OPT_print_map);
config.is_static = args.hasArg(OPT_static);
std::vector<ObjectFile *> files;
@ -734,7 +735,8 @@ int main(int argc, char **argv) {
out::ehdr = new OutputEhdr;
out::phdr = new OutputPhdr;
out::shdr = new OutputShdr;
// out::interp = new InterpSection;
if (!config.is_static)
out::interp = new InterpSection;
out::got = new GotSection(".got");
out::gotplt = new GotSection(".got.plt");
out::plt = new PltSection;

1
mold.h
View File

@ -54,6 +54,7 @@ class OutputSection;
struct Config {
StringRef output;
bool print_map = false;
bool is_static = false;
};
extern Config config;