mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 13:00:19 +00:00
fix(ldgen): fix linker script generation from a single-entry fragment file
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
@@ -122,14 +121,14 @@ class InputSectionDescTest(unittest.TestCase):
|
||||
|
||||
def test_empty_sections(self):
|
||||
# Test empty sections
|
||||
expected = '*libfreertos.a:croutine.*( )'
|
||||
expected = '*libfreertos.a:croutine.*'
|
||||
|
||||
desc = InputSectionDesc(Entity('libfreertos.a', 'croutine'), [])
|
||||
self.assertEqual(expected, str(desc))
|
||||
|
||||
def test_keep(self):
|
||||
# Test KEEP
|
||||
expected = 'KEEP(*libfreertos.a:croutine.*( ))'
|
||||
expected = 'KEEP(*libfreertos.a:croutine.*)'
|
||||
|
||||
desc = InputSectionDesc(Entity('libfreertos.a', 'croutine'), [], keep=True)
|
||||
self.assertEqual(expected, str(desc))
|
||||
|
Reference in New Issue
Block a user