Commit graph

18 commits

Author SHA1 Message Date
Boris Gjenero
0efabb3d19 Add linker script wildcards for -ffunction-sections and -fdata-sections.
This adds wildcards to accept section names created by -ffunction-sections
and -fdata-sections. It should now be possible to build all targets with
those switches. Other wildcards such as those in r31337 and r31338 are only
needed when things are explicitly put into those sectons.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31352 a1c6a512-1295-4272-9138-f99709370657
2011-12-18 07:09:00 +00:00
Boris Gjenero
ca9111ef64 Add KEEP() around vectors in linker scripts.
Vectors are needed by the CPU, but they don't need to be accessed by Rockbox.
Without the KEEP(), they can be removed when liking with --gc-sections, 
creating a broken binary without any warnings. This tells the linker to not
remove them. It should enable use of --gc-sections for all targets. When not
using --gc-sections, this does not change the binary.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31351 a1c6a512-1295-4272-9138-f99709370657
2011-12-18 06:43:08 +00:00
Jens Arnold
2bbacf89fe Make sure the linker considers crt0*.o before all files specified on the command line by using STARTUP() instead of INPUT() in the .lds. Using INPUT() makes the linker process crt0*.o after all files specified on the command line, making linking fail if there are librockbox.a members which are only referenced by crt0*.o. Remove the hackaround that was needed for building the gigabeat S bootloader before (aka UIE() problem).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17289 a1c6a512-1295-4272-9138-f99709370657
2008-04-29 06:19:32 +00:00
Miika Pekkarinen
ee4caec3c2 Fixed the rombox generation for SH1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11950 a1c6a512-1295-4272-9138-f99709370657
2007-01-08 19:19:23 +00:00
Miika Pekkarinen
b1af4e6cc8 Enable ROM file generation for H120/H140.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11947 a1c6a512-1295-4272-9138-f99709370657
2007-01-08 18:21:12 +00:00
Daniel Ankers
41997d3d89 Clean up crt0.S and move it to the target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10830 a1c6a512-1295-4272-9138-f99709370657
2006-08-31 19:45:05 +00:00
Jens Arnold
abd9f83e92 Two new sections for IRAM usage: .irodata (selectable with the ICONST_ATTR attribute macro), allowing to put 'const' data into IRAM without causing a section type conflict, and .ibss (selectable with the IBSS_ATTR attribute macro) for uninitialised data. * Rockbox core: Adjusted the linker scripts and init code to not include the .ibss section in the binary, it is cleared instead. Saves ~500 bytes on archos and ~30KB on iriver. Codecs and plugins don't handle .ibss in a special way yet. * The init code properly handles empty sections now (except .stack, which should never be empty). * Unified the init code for SH1 and coldfire a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7644 a1c6a512-1295-4272-9138-f99709370657
2005-10-19 19:35:24 +00:00
Jörg Hohensohn
13be9f14d7 allow the flash plugin to verify the RomBox link address
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7388 a1c6a512-1295-4272-9138-f99709370657
2005-08-23 07:26:40 +00:00
Christian Gmeiner
c6ff1f5eb5 Added CPU_COLDFIRE define - one step closer to iAudio-port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7186 a1c6a512-1295-4272-9138-f99709370657
2005-07-18 12:40:29 +00:00
Linus Nielsen Feltzing
1c40d3cee5 Ooops. DRAM can't start at 0x30000000 on iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6325 a1c6a512-1295-4272-9138-f99709370657
2005-04-20 06:48:17 +00:00
Linus Nielsen Feltzing
d34865a530 mp3buf renamed to audiobuf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6252 a1c6a512-1295-4272-9138-f99709370657
2005-04-05 11:33:58 +00:00
Linus Nielsen Feltzing
bd42d31e5e RoLo now works on the iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6238 a1c6a512-1295-4272-9138-f99709370657
2005-03-31 08:47:02 +00:00
Dave Chapman
e452383359 Increase PLUGINSIZE to 768k for devices with at least 32MB of RAM (currently only iRiver).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5952 a1c6a512-1295-4272-9138-f99709370657
2005-02-15 14:00:37 +00:00
Linus Nielsen Feltzing
63cf21da1f Adjustments for iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5696 a1c6a512-1295-4272-9138-f99709370657
2005-01-28 13:19:01 +00:00
Jens Arnold
0978026dda Rombox now properly uses all available DRAM for 8 MB builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5560 a1c6a512-1295-4272-9138-f99709370657
2005-01-12 01:25:19 +00:00
Daniel Stenberg
678090a2e7 rombox support: building and zip
general makefile: less output


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5043 a1c6a512-1295-4272-9138-f99709370657
2004-09-06 07:05:12 +00:00
Daniel Stenberg
762a6c6d8a define the ROM start in the config-*.h file instead and avoid the ifdef
in the rom.lds file


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5035 a1c6a512-1295-4272-9138-f99709370657
2004-09-03 13:16:19 +00:00
Daniel Stenberg
32cd555973 lds file for rombox builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5034 a1c6a512-1295-4272-9138-f99709370657
2004-09-03 13:02:16 +00:00