Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
  2. OUTPUT_ARCH(i386)
  3. /* Linker-generated symbols are prefixed with a double underscore.
  4. * Decompressor symbols are prefixed with __decompressor_. All other
  5. * symbols are the same as in the original object file, i.e. the
  6. * runtime addresses.
  7. */
  8. ENTRY(_start16)
  9. SECTIONS {
  10. .text : {
  11. *(.text)
  12. }
  13. .payload : {
  14. __payload_start = .;
  15. *(.data)
  16. __payload_end = .;
  17. }
  18. /* _payload_size is the size of the binary image appended to
  19. * start16, in bytes.
  20. */
  21. __payload_size = __payload_end - __payload_start ;
  22. /* _size is the size of the runtime image
  23. * (start32 + the C code), in bytes.
  24. */
  25. __size = _end - _start ;
  26. /* _decompressor_size is the size of the decompressor, in
  27. * bytes. For a non-compressed image, start16.lds sets
  28. * _decompressor_uncompressed = _decompressor__start = 0.
  29. */
  30. __decompressor_size = __decompressor_uncompressed - __decompressor__start ;
  31. /* image__size is the total size of the image, after
  32. * decompression and including the decompressor if applicable.
  33. * It is therefore the amount of memory that start16's payload
  34. * needs in order to execute, in bytes.
  35. */
  36. __image_size = __size + __decompressor_size ;
  37. /* Amount to add to runtime symbols to obtain the offset of
  38. * that symbol within the image.
  39. */
  40. __offset_adjust = __decompressor_size - _start ;
  41. /* Calculations for the stack
  42. */
  43. __stack_size = _estack - _stack ;
  44. __offset_stack = _stack + __offset_adjust ;
  45. /* Some symbols will be larger than 16 bits but guaranteed to
  46. * be multiples of 16. We calculate them in paragraphs and
  47. * export these symbols which can be used in 16-bit code
  48. * without risk of overflow.
  49. */
  50. __image_size_pgh = ( __image_size / 16 );
  51. __start_pgh = ( _start / 16 );
  52. __decompressor_size_pgh = ( __decompressor_size / 16 );
  53. __offset_stack_pgh = ( __offset_stack / 16 );
  54. }