sections.c 1.0 KB

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. /*
  7. * For some reason linker sets linker-generated symbols to zero in PIE mode.
  8. * A work-around is substitution of linker-generated symbols with
  9. * compiler-generated symbols which are properly handled by linker in PAE mode.
  10. */
  11. char __bss_start[0] __attribute__((section(".__bss_start")));
  12. char __bss_end[0] __attribute__((section(".__bss_end")));
  13. char __image_copy_start[0] __attribute__((section(".__image_copy_start")));
  14. char __image_copy_end[0] __attribute__((section(".__image_copy_end")));
  15. char __rel_dyn_start[0] __attribute__((section(".__rel_dyn_start")));
  16. char __rel_dyn_end[0] __attribute__((section(".__rel_dyn_end")));
  17. char __text_start[0] __attribute__((section(".__text_start")));
  18. char __text_end[0] __attribute__((section(".__text_end")));
  19. char __init_end[0] __attribute__((section(".__init_end")));
  20. char __ivt_start[0] __attribute__((section(".__ivt_start")));
  21. char __ivt_end[0] __attribute__((section(".__ivt_end")));