mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
341d0f4b9e
boundaries. It is possible to create an ELF executable where symbol from say .text section 'points' to the address outside the section boundaries. It does not have a sense to disassemble something outside the section. Without this fix llvm-objdump prints finite or infinite (depends on the executable file architecture) number of 'invalid instruction encoding' warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202083 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
340 B
ArmAsm
16 lines
340 B
ArmAsm
// $ cat out-of-section-sym.ld
|
|
// SECTIONS
|
|
// {
|
|
// . = 0x10;
|
|
// .text : { _ftext = . ; *(.text) }
|
|
// . = 0x20;
|
|
// .data : { _fdata = . ; *(.data) }
|
|
// }
|
|
// as --32 out-of-section-sym.s -o out-of-section-sym.o
|
|
// ld -m elf_i386 -Tout-of-section-sym.ld -o out-of-section-sym.elf-i386 \
|
|
// out-of-section-sym.o
|
|
|
|
.text
|
|
_start:
|
|
ret
|