From 3378ab8f236f387978fa4cc75bd5fca7021e8a13 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Mon, 28 Oct 2019 02:03:38 +0100 Subject: First implementation for --data-sections OTOH, section names included in "options" were being assigned *before* parsing command line arguments. These arose some issues so I have created a post-parsing function. --- src/SDCCglobl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/SDCCglobl.h') diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h index f8b41b3..78a28e0 100644 --- a/src/SDCCglobl.h +++ b/src/SDCCglobl.h @@ -330,6 +330,7 @@ struct options bool oldralloc; /* Use old register allocator */ int gasOutput; /* Output assembly in GNU as format */ int function_sections; /* Place each function into a separate section. Useful for link-time dead code elimination. */ + int data_sections; /* Place each static variable into a separate section. Useful for link-time dead code elimination. */ }; /* forward definition for variables accessed globally */ -- cgit v1.2.3