fw_payload.elf.ldS 492 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * SPDX-License-Identifier: BSD-2-Clause
  3. *
  4. * Copyright (c) 2019 Western Digital Corporation or its affiliates.
  5. *
  6. * Authors:
  7. * Anup Patel <anup.patel@wdc.com>
  8. */
  9. OUTPUT_ARCH(riscv)
  10. ENTRY(_start)
  11. SECTIONS
  12. {
  13. #include "fw_base.ldS"
  14. #ifdef FW_PAYLOAD_OFFSET
  15. . = FW_TEXT_START + FW_PAYLOAD_OFFSET;
  16. #else
  17. . = ALIGN(FW_PAYLOAD_ALIGN);
  18. #endif
  19. .payload :
  20. {
  21. PROVIDE(_payload_start = .);
  22. *(.payload)
  23. . = ALIGN(8);
  24. PROVIDE(_payload_end = .);
  25. }
  26. PROVIDE(_fw_reloc_end = .);
  27. }