1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-26 18:02:30 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-17 15:05:53 +09:00
parent 0a56052e3e
commit 9872e9abe3
2 changed files with 2 additions and 1 deletions

View File

@ -557,7 +557,7 @@ static u64 set_osec_offsets(ArrayRef<OutputChunk *> chunks) {
MyTimer t("osec_offset", before_copy_timer);
u64 fileoff = 0;
u64 vaddr = 0x200000;
u64 vaddr = config.image_base;
for (OutputChunk *chunk : chunks) {
if (chunk->starts_new_ptload)

1
mold.h
View File

@ -71,6 +71,7 @@ struct Config {
bool is_static = false;
bool print_map = false;
int filler = -1;
u64 image_base = 0x200000;
};
inline Config config;