qualcomm/eld

eld should emit a diagnostic when LMA is unaligned

Aperta

#444 aperta il 6 ott 2025

 (0 commenti) (0 reazioni) (1 assegnatario)C++ (73 fork)auto 404
diagnosticsgood first issue

Metriche repository

Star
 (254 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Currently eld does not emit a diagnostic if the LMA is unaligned

cat > 1.t << \!
SECTIONS {
  .foo (0x208) : AT(0x201) { *(.text.foo) }
}
!

cat > 1.c << \!
int foo() { return 0; }
!

hexagon-clang -c 1.c  -ffunction-sections
hexagon-link 1.o -T 1.t -Wlinker-script

Guida contributor