[all-commits] [llvm/llvm-project] 07e230: [ELF, test] Specify image base to make -Ttext/--sec...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri May 16 23:58:07 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 07e2300a8c9c8a70384ddfe310cf3495fab1821c
https://github.com/llvm/llvm-project/commit/07e2300a8c9c8a70384ddfe310cf3495fab1821c
Author: Fangrui Song <i at maskray.me>
Date: 2025-05-16 (Fri, 16 May 2025)
Changed paths:
M lld/test/ELF/aarch64-reloc-implicit-addend.test
M lld/test/ELF/aarch64-thunk-align.s
M lld/test/ELF/arm-cmse-diagnostics.s
M lld/test/ELF/arm-cmse-implib.s
M lld/test/ELF/arm-cmse-keep-sections.s
M lld/test/ELF/arm-cmse-noveneers.s
M lld/test/ELF/arm-cmse-secure.s
M lld/test/ELF/arm-cmse-veneers.s
M lld/test/ELF/avr-reloc-error.s
M lld/test/ELF/basic-avr.s
M lld/test/ELF/compress-debug-sections-reloc.s
M lld/test/ELF/eh-frame-value-format7.s
M lld/test/ELF/eh-frame-value-format8.s
M lld/test/ELF/gdb-index-dwarf5-type-unit.s
M lld/test/ELF/gdb-index-icf.s
M lld/test/ELF/i386-pc16.test
M lld/test/ELF/i386-pc8.s
M lld/test/ELF/i386-reloc-16-large-addend.s
M lld/test/ELF/i386-reloc-8-large-addend.s
M lld/test/ELF/i386-reloc-large-addend.s
M lld/test/ELF/i386-reloc-range.s
M lld/test/ELF/i386-reloc8-reloc16-addend.s
M lld/test/ELF/just-symbols-cref.s
M lld/test/ELF/just-symbols.s
M lld/test/ELF/linkerscript/avr5.test
M lld/test/ELF/linkerscript/memory-no-sections.test
M lld/test/ELF/loongarch-pc-aligned.s
M lld/test/ELF/msp430.s
M lld/test/ELF/nmagic.s
M lld/test/ELF/oformat-binary-ttext.s
M lld/test/ELF/sectionstart-noallochdr.s
M lld/test/ELF/systemz-reloc-disp12.s
M lld/test/ELF/systemz-reloc-disp20.s
M lld/test/ELF/systemz-reloc-pc16.s
M lld/test/ELF/systemz-reloc-pc32.s
M lld/test/ELF/x86-64-reloc-32.s
M lld/test/ELF/x86-64-reloc-pc32.s
Log Message:
-----------
[ELF,test] Specify image base to make -Ttext/--section-start tests less sensitive
Many tests specify -Ttext, -Tdata, or --section-start without SECTIONS
commands. When the specified address is lower than the image base,
* In the default --ro-segment case, there will be a read-only PT_LOAD segment covering ELF header/program headers, which may cover no section (as many tests omit .rodata). This appears unusual and has non-ascending p_vaddr.
* In the --no-rosegment case, an `error: output file too large` occurs.
We will add a diagnostic (#140187) and possibly change layout. Add
--image-base to make these tests less sensitive.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list