Project

General

Profile

Bug #10094

strange common code at LinkerScript.stg

Added by Sergey Smolov 4 months ago. Updated 4 months ago.

Status:
Verified
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.

History

#1

Updated by Alexander Kamkin 4 months ago

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

Updated by Sergey Smolov 4 months ago

  • Status changed from Resolved to Verified

Also available in: Atom PDF