[RTEMS Project] #3846: Build system does not track the dependencies of start.o files

RTEMS trac trac at rtems.org
Thu Sep 17 06:58:04 UTC 2020

#3846: Build system does not track the dependencies of start.o files
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  defect           |      Status:  closed
 Priority:  normal           |   Milestone:  6.1
Component:  build            |     Version:  6
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |  Blocked By:
 Blocking:                   |
Changes (by Sebastian Huber <sebastian.huber@…>):

 * status:  assigned => closed
 * resolution:   => fixed


 In [changeset:"4eea8d4bc44116b3465d7fdeb053d66bf95428f4/rtems"
 #!CommitTicketReference repository="rtems"
 build: Fix dependencies for start and asm files

 Add a feature to enforce an explicit target file for assembler sources.
 Add a build start file node list and use it as a test program

 The fix for #3846 and #4080 needs to be combined, because the fix
 for #3846 requires the removal of 'before=["cstlib"]'. This patch fixes
 two issues:

 1. The tracking of start file dependencies.

 2. Reflect that executables depend on the start files.

 We need a start.o file in the right path so that the linker can find is
 as specified by the linker script, and not for example a start.S.17.o
 file in some path. This part is addressed by the "explicit_asm_target"

 This build process extension

 @feature("cprogram", "cxxprogram")
 def process_start_files(self):
     if getattr(self, "start_files", False):

 addresses 2.

 Close #3846.
 Close #4080.

Ticket URL: <http://devel.rtems.org/ticket/3846#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list