sections.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* sections.h: linkage layout variables
  2. *
  3. * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #ifndef _ASM_SECTIONS_H
  12. #define _ASM_SECTIONS_H
  13. #ifndef __ASSEMBLY__
  14. #include <linux/types.h>
  15. #include <asm-generic/sections.h>
  16. #ifdef __KERNEL__
  17. /*
  18. * we don't want to put variables in the GP-REL section if they're not used very much - that would
  19. * be waste since GP-REL addressing is limited to GP16+/-2048
  20. */
  21. #define __nongpreldata __attribute__((section(".data")))
  22. #define __nongprelbss __attribute__((section(".bss")))
  23. /*
  24. * linker symbols
  25. */
  26. extern const void __kernel_image_start, __kernel_image_end, __page_offset;
  27. extern unsigned long __nongprelbss memory_start;
  28. extern unsigned long __nongprelbss memory_end;
  29. extern unsigned long __nongprelbss rom_length;
  30. #endif
  31. #endif
  32. #endif /* _ASM_SECTIONS_H */