From 784ff322374e4bc2700f8ccc6d8950a91517f952 Mon Sep 17 00:00:00 2001 From: afflitto Date: Mon, 26 Feb 2024 20:24:11 +0000 Subject: [PATCH 1/2] Remove SUBALIGN(0) from bss linker script --- ofrak_patch_maker/ofrak_patch_maker/toolchain/gnu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofrak_patch_maker/ofrak_patch_maker/toolchain/gnu.py b/ofrak_patch_maker/ofrak_patch_maker/toolchain/gnu.py index 51ca0b2fd..93120b515 100644 --- a/ofrak_patch_maker/ofrak_patch_maker/toolchain/gnu.py +++ b/ofrak_patch_maker/ofrak_patch_maker/toolchain/gnu.py @@ -185,7 +185,7 @@ def ld_generate_bss_section( ) -> str: bss_section_name = ".bss" return ( - f" {bss_section_name} : SUBALIGN(0) {{\n" + f" {bss_section_name} : {{\n" f" *.o({bss_section_name}, {bss_section_name}.*)\n" f" }} > {memory_region_name}" ) From aca4f3b2cf2efdc6a35c02d68ec850e052651d07 Mon Sep 17 00:00:00 2001 From: afflitto Date: Mon, 26 Feb 2024 21:14:58 +0000 Subject: [PATCH 2/2] Update changelog --- ofrak_patch_maker/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ofrak_patch_maker/CHANGELOG.md b/ofrak_patch_maker/CHANGELOG.md index 26ebf58bd..db59c28ed 100644 --- a/ofrak_patch_maker/CHANGELOG.md +++ b/ofrak_patch_maker/CHANGELOG.md @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased](https://github.com/redballoonsecurity/ofrak/tree/master) +### Changed +- Removed `SUBALIGN(0)` for `.bss` sections + ## [4.0.2](https://github.com/redballoonsecurity/ofrak/compare/ofrak-patch-maker-v.4.0.1...ofrak-patch-maker-v.4.0.2) ### Fixed - Remove option to read or install toolchain.conf from/to "/etc/toolchain.conf" ([#342](https://github.com/redballoonsecurity/ofrak/pull/342))