qualcomm/eld

eld should emit a diagnostic when LMA is unaligned

Ouverte

#444 ouverte le 6 oct. 2025

 (0 commentaire) (0 réaction) (1 personne assignée)C++ (73 forks)auto 404
diagnosticsgood first issue

Métriques du dépôt

Stars
 (254 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur