From 02ec7156c119d5fc749d2219747ec16e97e020d3 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 30 May 2024 18:45:56 +0900 Subject: [PATCH] Update man page --- docs/mold.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/mold.md b/docs/mold.md index 0ca0774ffc..941dd5e995 100644 --- a/docs/mold.md +++ b/docs/mold.md @@ -602,10 +602,18 @@ but as `-o magic`. Create a share library. * `--spare-dynamic-tags`=_number_: - Reserve the given _number_ of tags in `.dynamic` section. + Append the given number of `DT_NULL` entries to the end of the `.dynamic` + section, so that post-link processing tools can easily add new dynamic tags + by overwriting the null entries. * `--spare-program-headers`=_number_: - Reserve the given _number_ of entries in the program header. + Append the given number of `PT_NULL` entries to the end of the program + header, so that post-link processing tools can easily add new segments by + overwriting the null entries. + + Note that ELF(5) requires all `PT_LOAD` segments to be sorted by `p_vaddr`. + Therefore, if you add a new LOAD segment, you may need to sort the entire + program header. * `--start-lib`, `--end-lib`: Handle object files between `--start-lib` and `--end-lib` as if they were in