https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66203
Bug ID: 66203
Summary: aarch64-none-elf does not automatically find librdimon
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: clyon at gcc dot gnu.org
Target Milestone: ---
While looking at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66018, I noticed
that
$ aarch64-none-elf-gcc conftest.c -o conftest
fails to link unless one uses --specs=rdimon.specs.
Otherwise, newlib's crt0.S reference to initialise_monitor_handles and exit.o
reference to _exit cannot be resolved.
the arm-none-eabi compiler does not need such an option.
Is this on purpose, or is this a bug?
If on purpose, it looks like GCC build for aarch64-none-elf should set
LDFLAGS_FOR_TARGET=--specs=rdimon.specs.