Skip to content

Commit

Permalink
Remove unused code from SBE
Browse files Browse the repository at this point in the history
Change-Id: Ia24de56af312bf9cdcc80573216cc6dbd1f8acf5
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69006
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
  • Loading branch information
sgupta2m committed Dec 10, 2018
1 parent c0a1b5d commit eaee47c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ build_sbe_image: $(SUBDIRS) $(SEEPROM_SUBDIRS)

output_sbe_image:
$(C2) "Generating $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).out"
$(C1)$(LD) -n -T$(LINK_SCRIPT_SEEPROM) -Map $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).map \
$(C1)$(LD) -e __system_reset -n -T$(LINK_SCRIPT_SEEPROM) -Map $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).map \
-Bstatic -o $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).out $(addprefix $(BOOT_OBJDIR)/, $(BOOT_OBJECTS)) $(BUILDDATA_OBJDIR)/$(IMAGE_BASE_PPE_HEADER).o $(OBJS) $(LIB_DIRS) \
--start-group $(LLIBS) --end-group
--start-group $(LLIBS) --end-group --gc-sections
$(C1)./parsAndCutElf.py $(IMAGE_SUFFIX) $(IMG_DIR)
$(C1)$(OBJDUMP) -S $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).out > $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).dis

Expand Down
16 changes: 8 additions & 8 deletions src/build/linkerscripts/power/linkseeprom.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ SECTIONS
// Header
////////////////////////////////
.header : {
_header_origin = .; _header_offset = . - _seeprom_origin; *(.header);
_header_origin = .; _header_offset = . - _seeprom_origin; KEEP(*(.header));
} > seeprom
_header_size = . - _header_origin;

Expand All @@ -72,7 +72,7 @@ SECTIONS
////////////////////////////////
.loader_text ALIGN(0x200): {
_loader_text_origin = .; _loader_text_offset = . - _seeprom_origin;
*(.loader_text);
KEEP(*(.loader_text));
} > seeprom
_loader_text_size = . - _loader_text_origin;

Expand All @@ -89,7 +89,7 @@ SECTIONS
////////////////////////////////
.fixed ALIGN(0x200) : {
_fixed_origin = .; _fixed_offset = . - _seeprom_origin;
*(.fixed)
KEEP(*(.fixed))
} > seeprom
_fixed_size = . - _fixed_origin;

Expand All @@ -105,23 +105,23 @@ SECTIONS
// FIXED_TOC
////////////////////////////////
.fixed_toc ALIGN(8) : {
_fixed_toc_origin = .; _fixed_toc_offset = . - _seeprom_origin; *(.fixed_toc);
_fixed_toc_origin = .; _fixed_toc_offset = . - _seeprom_origin; KEEP(*(.fixed_toc));
} > seeprom
_fixed_toc_size = . - _fixed_toc_origin;

////////////////////////////////
// TOC
////////////////////////////////
.toc ALIGN(4): {
_toc_origin = .; _toc_offset = . - _seeprom_origin; *(.toc);
_toc_origin = .; _toc_offset = . - _seeprom_origin; KEEP(*(.toc));
} > seeprom
_toc_size = . - _toc_origin;

////////////////////////////////
// STRING
////////////////////////////////
.strings : {
_strings_origin = .; _strings_offset = . - _seeprom_origin; *(.strings);
_strings_origin = .; _strings_offset = . - _seeprom_origin; KEEP(*(.strings));
} > seeprom
_strings_size = . - _strings_origin;

Expand Down Expand Up @@ -161,9 +161,9 @@ SECTIONS
. = ALIGN(8);
.rodata . : {
ctor_start_address = .;
*(.ctors) *(.ctors.*)
KEEP(*(.ctors)) KEEP(*(.ctors.*))
ctor_end_address = .;
*(.rodata*) *(.got2);
KEEP(*(.rodata*)) KEEP(*(.got2));
} > pibmem
_RODATA_SECTION_SIZE = . - _RODATA_SECTION_BASE;

Expand Down
16 changes: 8 additions & 8 deletions src/build/linkerscripts/power_axone/linkseeprom.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ SECTIONS
// Header
////////////////////////////////
.header : {
_header_origin = .; _header_offset = . - _seeprom_origin; *(.header);
_header_origin = .; _header_offset = . - _seeprom_origin; KEEP(*(.header));
} > seeprom
_header_size = . - _header_origin;

Expand All @@ -72,7 +72,7 @@ SECTIONS
////////////////////////////////
.loader_text ALIGN(0x200): {
_loader_text_origin = .; _loader_text_offset = . - _seeprom_origin;
*(.loader_text);
KEEP(*(.loader_text));
} > seeprom
_loader_text_size = . - _loader_text_origin;

Expand All @@ -89,7 +89,7 @@ SECTIONS
////////////////////////////////
.fixed ALIGN(0x200) : {
_fixed_origin = .; _fixed_offset = . - _seeprom_origin;
*(.fixed)
KEEP(*(.fixed))
} > seeprom
_fixed_size = . - _fixed_origin;

Expand All @@ -105,23 +105,23 @@ SECTIONS
// FIXED_TOC
////////////////////////////////
.fixed_toc ALIGN(8) : {
_fixed_toc_origin = .; _fixed_toc_offset = . - _seeprom_origin; *(.fixed_toc);
_fixed_toc_origin = .; _fixed_toc_offset = . - _seeprom_origin; KEEP(*(.fixed_toc));
} > seeprom
_fixed_toc_size = . - _fixed_toc_origin;

////////////////////////////////
// TOC
////////////////////////////////
.toc ALIGN(4): {
_toc_origin = .; _toc_offset = . - _seeprom_origin; *(.toc);
_toc_origin = .; _toc_offset = . - _seeprom_origin; KEEP(*(.toc));
} > seeprom
_toc_size = . - _toc_origin;

////////////////////////////////
// STRING
////////////////////////////////
.strings : {
_strings_origin = .; _strings_offset = . - _seeprom_origin; *(.strings);
_strings_origin = .; _strings_offset = . - _seeprom_origin; KEEP(*(.strings));
} > seeprom
_strings_size = . - _strings_origin;

Expand Down Expand Up @@ -161,9 +161,9 @@ SECTIONS
. = ALIGN(8);
.rodata . : {
ctor_start_address = .;
*(.ctors) *(.ctors.*)
KEEP(*(.ctors)) KEEP(*(.ctors.*))
ctor_end_address = .;
*(.rodata*) *(.got2);
KEEP(*(.rodata*)) KEEP(*(.got2));
} > pibmem
_RODATA_SECTION_SIZE = . - _RODATA_SECTION_BASE;

Expand Down

0 comments on commit eaee47c

Please sign in to comment.