qualcomm/eld

eld should emit a diagnostic when LMA is unaligned

Open

#444 opened on Oct 6, 2025

 (0 comments) (0 reactions) (1 assignee)C++ (73 forks)auto 404
diagnosticsgood first issue

Repository metrics

Stars
 (254 stars)
PR merge metrics
 (PR metrics pending)

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

Contributor guide