| author | |
| committer | |
| log | 2d867223be4139ac55b1be1f5c19eee8a393c62a |
| tree | 32873d23bbce1f0bb3436b5a03a6f0e0f3942343 |
| parent | 7bc6546fdfadf3e3c91ee2be1387913599a63e4a |
See 7daf0b6f4660245ac518c663f8971aad7e540da8; builds for ARM can run into the
same problems due to limited branch range.2 files changed, 2 insertions(+), 2 deletions(-)
CMakeLists.txt+1-1| ... | @@ -609,7 +609,7 @@ else() | ... | @@ -609,7 +609,7 @@ else() |
| 609 | set(ZIG1_COMPILE_FLAGS "-std=c99 -Os") | 609 | set(ZIG1_COMPILE_FLAGS "-std=c99 -Os") |
| 610 | set(ZIG2_COMPILE_FLAGS "-std=c99 -O0 -fno-sanitize=undefined -fno-stack-protector") | 610 | set(ZIG2_COMPILE_FLAGS "-std=c99 -O0 -fno-sanitize=undefined -fno-stack-protector") |
| 611 | # Must match the condition in build.zig. | 611 | # Must match the condition in build.zig. |
| 612 | if(ZIG_HOST_TARGET_ARCH MATCHES "^powerpc(64)?(le)?$") | 612 | if(ZIG_HOST_TARGET_ARCH MATCHES "^(arm|thumb)(eb)?$" OR ZIG_HOST_TARGET_ARCH MATCHES "^powerpc(64)?(le)?$") |
| 613 | set(ZIG1_COMPILE_FLAGS "${ZIG1_COMPILE_FLAGS} -ffunction-sections -fdata-sections") | 613 | set(ZIG1_COMPILE_FLAGS "${ZIG1_COMPILE_FLAGS} -ffunction-sections -fdata-sections") |
| 614 | set(ZIG2_COMPILE_FLAGS "${ZIG2_COMPILE_FLAGS} -ffunction-sections -fdata-sections") | 614 | set(ZIG2_COMPILE_FLAGS "${ZIG2_COMPILE_FLAGS} -ffunction-sections -fdata-sections") |
| 615 | endif() | 615 | endif() |
build.zig+1-1| ... | @@ -773,7 +773,7 @@ fn addCompilerStep(b: *std.Build, options: AddCompilerModOptions) *std.Build.Ste | ... | @@ -773,7 +773,7 @@ fn addCompilerStep(b: *std.Build, options: AddCompilerModOptions) *std.Build.Ste |
| 773 | exe.stack_size = stack_size; | 773 | exe.stack_size = stack_size; |
| 774 | 774 | ||
| 775 | // Must match the condition in CMakeLists.txt. | 775 | // Must match the condition in CMakeLists.txt. |
| 776 | const function_data_sections = options.target.result.cpu.arch.isPowerPC(); | 776 | const function_data_sections = options.target.result.cpu.arch.isArm() or options.target.result.cpu.arch.isPowerPC(); |
| 777 | 777 | ||
| 778 | exe.link_function_sections = function_data_sections; | 778 | exe.link_function_sections = function_data_sections; |
| 779 | exe.link_data_sections = function_data_sections; | 779 | exe.link_data_sections = function_data_sections; |