• Masahiro Yamada's avatar
    mtd: denali_spl: do not allocate page_buffer in .bss section · 2bc1f2b5
    Masahiro Yamada authored
    Since commit 2580a2a7 ("mtd: nand: Increase max sizes of OOB and
    Page size"), three boards (ph1_ld4, ph1_pro4, ph1_sld8) fail to build
    with the following error message:
      arm-linux-gnueabi-ld.bfd: SPL image plus BSS too big
    
    They compile drivers/mtd/nand/denali_spl.c and it has a page_buffer
    as static data:
    
        static uint8_t page_buffer[NAND_MAX_PAGESIZE];
    
    This buffer required 8KB in .bss section before that commit and now
    it has been increased to 16KB.  Given limited code/memory size for SPL,
    it is not a good idea to allocate a page buffer statically.  In the
    first place, the load address 'dst' can be used as a page buffer.
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    2bc1f2b5
Name
Last commit
Last update
..
bios_emulator Loading commit data...
block Loading commit data...
bootcount Loading commit data...
clk Loading commit data...
core Loading commit data...
cpu Loading commit data...
crypto Loading commit data...
ddr Loading commit data...
demo Loading commit data...
dfu Loading commit data...
dma Loading commit data...
fpga Loading commit data...
gpio Loading commit data...
hwmon Loading commit data...
i2c Loading commit data...
input Loading commit data...
led Loading commit data...
memory Loading commit data...
misc Loading commit data...
mmc Loading commit data...
mtd Loading commit data...
net Loading commit data...
pci Loading commit data...
pcmcia Loading commit data...
power Loading commit data...
pwm Loading commit data...
qe Loading commit data...
ram Loading commit data...
rtc Loading commit data...
serial Loading commit data...
soc Loading commit data...
sound Loading commit data...
spi Loading commit data...
thermal Loading commit data...
tpm Loading commit data...
twserial Loading commit data...
usb Loading commit data...
video Loading commit data...
watchdog Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...