From bf3e94ba7ac88978b545847bb97bf763392fb490 Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Tue, 31 Jan 2023 22:05:13 +0800 Subject: [PATCH] Mention linker should report error if data size is extended --- riscv-elf.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/riscv-elf.adoc b/riscv-elf.adoc index 7d1cd7b2..2ba83e0f 100644 --- a/riscv-elf.adoc +++ b/riscv-elf.adoc @@ -1236,7 +1236,9 @@ Linker should adjust relocations which refer to those symbol has updated the address. ULEB128 value with relocation must be padding to the same length even if the -data can be encoded with a shorter byte sequence after linker relaxation. +data can be encoded with a shorter byte sequence after linker relaxation, The +linker should report errors if the length of ULEB128 byte sequence is more +extended than the current byte sequence. === Linker Relaxation Types