[AMD Official Use Only - AMD Internal Distribution Only]
Hi Boyan,
Applied the patch shared by you,and the -flto-partition error is now resolved. However, this exposes a new set of issues during the link stage related to assembly function call
Trimmed out the linker error log :
(.text.asm.bl31_entrypoint+0x144): undefined reference to `bl31_main'
(.text.asm.el3_exit+0x30): undefined reference to `per_world_context'
(.text.asm.sync_exception_handler+0x68): undefined reference to `rt_svc_descs_indices'
Additionally, when we are passing the armclang assembler as part of build command,running into below errors:
Error log :
Makefile:970:
Makefile:970: The configured AArch64 assembler could not be identified:
Makefile:970:
Makefile:970: '/tools/installs/arm/safety/armcc/6.16.2/bin/armasm' (via `AS` parameter)
Makefile:970:
Makefile:970: The following tools are supported:
Makefile:970:
Makefile:970: - Arm(r) Compiler for Embedded `armclang`
Makefile:970: - LLVM Clang (`clang`)
Makefile:970: - GNU GCC (`gcc`)
Makefile:970:
Makefile:970: The build system will treat this assembler as GNU GCC (`gcc`).
Please let me know if this configuration is expected to work with ENABLE_LTO=1, or if additional changes (e.g., toolchain selection or linker/assembler handling) are required.
Thanks for your guidance.
Best regards,
Venkata Sai .T .
This event has been canceled with a note:
"Cancelling for this week."
TF-A Tech Forum
Thursday Feb 5, 2026 ⋅ 5pm – 6pm
Central European Time - Paris
Location
https://linaro-org.zoom.us/j/93557863987?pwd=56a1l8cBnetDTZ6eazHGaE1Ctk4W34…https://www.google.com/url?q=https%3A%2F%2Flinaro-org.zoom.us%2Fj%2F9355786…
Trusted Firmware is inviting you to a scheduled Zoom meeting.Topic: TF-A
Tech ForumTime: May 15, 2025 02:00 PM London Every 2 weeks on Thu,
78 occurrence(s)Please download and import the following iCalendar (.ics)
files to your calendar
system.Weekly: https://linaro-org.zoom.us/meeting/tJcocu6gqDgjEtOkyBhSQauR1sUyFwIcNKLa/ics…
Zoom
Meetinghttps://linaro-org.zoom.us/j/93557863987?pwd=56a1l8cBnetDTZ6eazHGaE1Ctk4W34.1Meeting
ID: 935 5786 3987Passcode: 939141---One tap
mobile+12532158782,,93557863987# US (Tacoma)+13017158592,,93557863987# US
(Washington DC)---Dial by your location• +1 253 215 8782 US (Tacoma)• +1
301 715 8592 US (Washington DC)• +1 305 224 1968 US• +1 309 205 3325 US• +1
312 626 6799 US (Chicago)• +1 346 248 7799 US (Houston)• +1 360 209 5623
US• +1 386 347 5053 US• +1 507 473 4847 US• +1 564 217 2000 US• +1 646 558
8656 US (New York)• +1 646 931 3860 US• +1 669 444 9171 US• +1 669 900 9128
US (San Jose)• +1 689 278 1000 US• +1 719 359 4580 US• +1 253 205 0468 US•
833 548 0276 US Toll-free• 833 548 0282 US Toll-free• 833 928 4608 US
Toll-free• 833 928 4609 US Toll-free• 833 928 4610 US Toll-free• 877 853
5247 US Toll-free• 888 788 0099 US Toll-freeMeeting ID: 935 5786 3987Find
your local number: https://linaro-org.zoom.us/u/adoz9mILli
Guests
qwandor(a)google.com
praan(a)google.com
jeremimiller(a)google.com
jagdish.gediya(a)linaro.org
tf-a(a)lists.trustedfirmware.org
~~//~~
Invitation from Google Calendar: https://calendar.google.com/calendar/
You are receiving this email because you are an attendee on the event.
Forwarding this invitation could allow any recipient to send a response to
the organizer, be added to the guest list, invite others regardless of
their own invitation status, or modify your RSVP.
Learn more https://support.google.com/calendar/answer/37135#forwarding
[AMD Official Use Only - AMD Internal Distribution Only]
Hello Maintainers,
we are trying to build TF‑A BL31 for the ZynqMP (Cortex‑A53) platform with Arm Compiler 6 (armclang) and ENABLE_LTO=1, and I’m running into several toolchain‑related build and link issues.
Setup :
Platform: ZynqMP
Toolchains:
Arm Compiler for Embedded 6.16.2 (armclang)
Xilinx AArch64 GNU tools from Vitis 2025.2 (aarch64-xilinx-elf-*)
LTO is enabled in plat/xilinx/zynqmp/platform.mk via ENABLE_LTO := 1.
Issues observed :
With CC=armclang and AArch64 linker (GCC), the build fails with:
armclang: error: unknown argument: '-flto-partition=one'
This flag appears when ENABLE_LTO=1 and the linker is detected as gnu-gcc.
If I keep CC=armclang and ENABLE_LTO=1 but change the linker, I get linker‑specific errors
With the Arm linker (LD=armlink or LD=armclang, which invokes armlink under the hood):
Fatal error: L3900U: Unrecognized option '-z'.
This is due to GNU‑style -z options (and similar flags) being passed to armlink.
As -z options is specific to GNU linker, a armlink style flag would address the unrecognised option but we are observing dependency on scatter files.
Fatal error: L6031U: Could not open scatter description file plat/xilinx/zynqmp//scat/bl31.scat: No such file or directory
Could you please help us with pointers to address the linker issues .
With regards ,
Venkata Sai .T .