[PATCH] [MSP430] Define __crt0_init_bss/__crt0_movedata symbols when .lower or .either prefixed sections are present

Jozef Lawrynowicz jozef.l@mittosystems.com
Wed Apr 17 11:01:00 GMT 2019


To facilitate a reduced code size runtime environment, the MSP430 assembler
defines symbols to "pull in" functions from the runtime (crt0) only when they
are required. The assembler examines the section names in the input file to
determine which symbols need to be defined.
For example, the symbol for a function which initializes data in the
upper memory region is only defined if there is a data section which has a name
starting with ".upper".

The attached patch changes the behaviour so symbols for functions that
initialize data and bss in the lower region are also defined if a section name
starting with ".lower" or ".either" is seen.

Successfully regtested the gas testsuite with these changes.

If the patch is acceptable, I would appreciate if someone would commit it for
me, as I do not have write access.

Thanks,
Jozef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MSP430-Define-__crt0_init_bss-__crt0_movedata-symbol.patch
Type: text/x-patch
Size: 5390 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20190417/c08f3abb/attachment.bin>


More information about the Binutils mailing list