LINUX.ORG.RU

История изменений

Исправление sparks, (текущая версия) :

ммм, несовсем понятно зачем ты cc используешь для линковки, попробуй добавить -N или используй ld если в твоём cc нет этого ключа

  -N
   --omagic
       Set the text and data sections to be readable and writable.  Also, do not page-align
       the data segment, and disable linking against shared libraries.  If the output format
       supports Unix style magic numbers, mark the output as "OMAGIC". Note: Although a
       writable text section is allowed for PE-COFF targets, it does not conform to the
       format specification published by Microsoft.

   --no-omagic
       This option negates most of the effects of the -N option.  It sets the text section to
       be read-only, and forces the data segment to be page-aligned.  Note - this option does
       not enable linking against shared libraries.  Use -Bdynamic for this.

Исходная версия sparks, :

ммм, несовсем понятно зачем ты cc используешь для линковки, попробуй добавить -N или используй ld

  -N
   --omagic
       Set the text and data sections to be readable and writable.  Also, do not page-align
       the data segment, and disable linking against shared libraries.  If the output format
       supports Unix style magic numbers, mark the output as "OMAGIC". Note: Although a
       writable text section is allowed for PE-COFF targets, it does not conform to the
       format specification published by Microsoft.

   --no-omagic
       This option negates most of the effects of the -N option.  It sets the text section to
       be read-only, and forces the data segment to be page-aligned.  Note - this option does
       not enable linking against shared libraries.  Use -Bdynamic for this.