Hi Chris,
On 11/4/24 4:47 PM, Chris Kay wrote:
I’m afraid I’ve not been able to reproduce the .incbin error – it all links fine for me.
$ clang –version Ubuntu clang version 18.1.3 (1ubuntu1) Target: aarch64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/bin
Can you share how you did it? Because I cannot even link it with Ubuntu 24.04 (which I assume is your distro).
The git repo is checked out at https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/33183/1 +
""" diff --git a/plat/rockchip/rk3399/drivers/pmu/pmu_fw.S b/plat/rockchip/rk3399/drivers/pmu/pmu_fw.S index 26f331317..ed70cba1f 100644 --- a/plat/rockchip/rk3399/drivers/pmu/pmu_fw.S +++ b/plat/rockchip/rk3399/drivers/pmu/pmu_fw.S @@ -11,7 +11,7 @@ .type \sym, @object .align 4 \sym : - .incbin \file + .incbin "\file" .size \sym , .-\sym .global \sym()_end \sym()_end : """
podman run -it --userns=keep-id -v "$PWD":"$PWD" -w $PWD --security-opt label=disable ubuntu:24.04 bash
in another terminal: podman exec -it --user root --latest sh -c 'apt-get update && apt-get install -qq --no-install-recommends clang make lld llvm gcc-arm-none-eabi'
from the first terminal, run make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 CC=clang bl31 -j`nproc`
I get: ld.lld: warning: ignoring memory region assignment for non-allocatable section '.incbin_sram' ld.lld: error: section '.pmusram' will not fit in region 'PMUSRAM': overflowed by 3928 bytes
Whereas with Fedora41: podman run -it --userns=keep-id -v "$PWD":"$PWD" -w $PWD --security-opt label=disable fedora:41 bash
In a second terminal: podman exec -it --user root --latest sh -c 'dnf upgrade && dnf install --setopt=install_weak_deps=False -y make clang llvm arm-none-eabi-gcc lld'
I get: ld.lld: warning: ignoring memory region assignment for non-allocatable section '.incbin_sram'
clang --version clang version 19.1.0 (Fedora 19.1.0-1.fc41) Target: x86_64-redhat-linux-gnu Thread model: posix InstalledDir: /usr/bin Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang.cfg
Cheers, Quentin