ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
12 мая
17168 Топик полностью
Alex03 (24.11.2004 17:28, просмотров: 1) ответил Серокой на arm-elf-gcc, линкование
А явно сказать линкеру адрес(а) секции(ий) не получается? Это взято из man ld на линуксе: --section-start sectionname=org Locate a section in the output file at the absolute address given by org. You may use this option as many times as necessary to locate multiple sections in the command line. org must be a single hexadecimal integer; for compatibility with other linkers, you may omit the leading 0x usually associated with hexadecimal values. Note: there should be no white space between sectionname, the equals sign (``=''), and org. -Tbss org -Tdata org -Ttext org Use org as the starting address for---respectively---the "bss", "data", or the "text" segment of the output file. org must be a single hexadecimal integer; for compatibility with other linkers, you may omit the leading 0x usually associated with hexadecimal values. Если запускаешь не ld а gcc то примерно так -Wl,-Tdata,0xXXXXXXXX. Дефолтные смещения (в том числе для целевых камней) наверно в какихнить specs-файлах прописаны. Это я в общем случае про GCC. По arm-elf-gcc я ничё не знаю.