03 Sep, 2019

1 commit

  • Previously the handling of R_RISCV_32 and R_RISCV_64 would simply
    insert the value of the symbol and ignore any addend. However, there
    exist relocs where the addend is non-zero:

    0000000080250900 R_RISCV_64 efi_runtime_services+0x0000000000000068
    0000000080250910 R_RISCV_64 efi_runtime_services+0x0000000000000038
    0000000080250920 R_RISCV_64 efi_runtime_services+0x0000000000000018
    0000000080250930 R_RISCV_64 efi_runtime_services+0x0000000000000020
    0000000080250980 R_RISCV_64 efi_runtime_services+0x0000000000000048
    0000000080250990 R_RISCV_64 efi_runtime_services+0x0000000000000050
    00000000802509a0 R_RISCV_64 efi_runtime_services+0x0000000000000058
    0000000080250940 R_RISCV_64 systab+0x0000000000000030
    0000000080250950 R_RISCV_64 systab+0x0000000000000040
    0000000080250960 R_RISCV_64 systab+0x0000000000000050
    0000000080250970 R_RISCV_64 systab+0x0000000000000060

    In these cases the addend needs to be added to the symbol value to get
    the correct value for the reloc.

    Signed-off-by: Marcus Comstedt
    Cc: Rick Chen

    Marcus Comstedt
     

15 Aug, 2019

2 commits


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

12 Jan, 2018

1 commit

  • Add prelink-riscv to arrange .rela.dyn and .rela.got
    in compile time. So that u-boot can be directly
    executed without fixup.

    Signed-off-by: Chih-Mao Chen
    Signed-off-by: Rick Chen
    Signed-off-by: Rick Chen
    Signed-off-by: Greentime Hu

    Rick Chen