Project

General

Profile

Actions

Bug #10094

closed

strange common code at LinkerScript.stg

Added by Sergey Smolov almost 5 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Test Engine
Target version:
Start date:
02/04/2020
Due date:
% Done:

0%

Estimated time:
Detected in build:
master
Platform:
Published in build:

Description

The StringTemplate description for ld scripts looks as follows (https://forge.ispras.ru/projects/microtesk/repository/microtesk/revisions/master/entry/src/main/resources/core/stg/LinkerScript.stg):

linker_script(
  time,
  section_ids,
  section_vas,
  section_flags
) ::= <<
<linker_script_header(time)>
ENTRY(_start)
SECTIONS
{
  <section_ids, section_vas, section_flags : {id, va, fl | <section(id, va, fl)>}; separator="\n">
  . = ALIGN(8);
  . = . + 0x10000;
  stack_top = .;
}
>>

section(id, va, common) ::= <<
<if(va)>. = <va>;<\n><endif><id> : { *("<id><if(common)> COMMON<endif>")}
>>

The following part is common for all linker scripts that are generated by the MicroTESK:

  . = ALIGN(8);
  . = . + 0x10000;
  stack_top = .;

It seems suspicious that this code is repeated for all ISAs.

Actions #1

Updated by Alexander Kamkin almost 5 years ago

  • Category set to Test Engine
  • Status changed from New to Resolved
  • Target version set to 2.5
Actions #2

Updated by Sergey Smolov almost 5 years ago

  • Status changed from Resolved to Verified
Actions #3

Updated by Alexander Protsenko over 1 year ago

  • Status changed from Verified to Closed
Actions

Also available in: Atom PDF