Antonio Niño Díaz
d24cf11ad4
Make list of linker symbols common
...
That way the definitions of the assembler and the linker are always the
same.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-05 00:32:50 +00:00
Antonio Niño Díaz
f41c532400
Cleanup code of rbglink
...
Follow Linux kernel coding style.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-02 13:16:53 +01:00
Antonio Niño Díaz
ba944527ec
Replace ULONG by uint32_t
...
All affected `printf` have been fixed.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-12-31 15:16:08 +01:00
Antonio Niño Díaz
87c9d819a1
Replace SLONG by int32_t
...
All affected `printf` have been fixed.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-12-31 15:16:08 +01:00
Antonio Niño Díaz
13c0684497
Replace 8 and 16 bit custom types by stdint.h types
...
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-12-31 15:16:08 +01:00
Antonio Niño Díaz
92449a4fe4
Save object file name of each symbol in linker
...
This is useful to generate error messages when there is a symbol that
appears in more than one object file.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-07-22 15:27:25 +01:00
Antonio Niño Díaz
4dc376b0ee
Save location information of symbol definitions
...
Now, object files save the file name and line number where each global
symbol is defined.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-07-22 15:27:06 +01:00
Antonio Niño Díaz
729683fb1f
Remove RPN_RANGECHECK
...
Leftover code from ASMotor.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-16 19:55:00 +01:00
Antonio Niño Díaz
ed6e4c4769
Clean object file format code and documentation
...
Remove unused code.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-16 19:54:58 +01:00
Antonio Niño Díaz
5679c7066b
Restore behaviour of option -w and add option -d
...
rgblink option -w has been restored to its previous behaviour: make WRAM
a continous section instead of spliting it into WRAM0 and WRAMX.
To enable DMG mode, option -d has to be used instead. This option
automatically enables -w.
Update tests.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-10 20:03:52 +01:00
Antonio Niño Díaz
be50f2d302
Remove unused patch enum element
...
If the next release is going to break compatibility with older object
file formats it doesn't make sense to keep this.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-09 21:25:20 +01:00
Antonio Niño Díaz
e3109af2f8
Rename OPT_CONTWRAM to OPT_DMG_MODE
...
Now, it will also make sure that VRAM bank 1 isn't used.
Man page updated.
Tests added.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-08 18:08:51 +01:00
AntonioND
e9ed81074b
Rename OPT_SMALL to OPT_TINY
...
This way it is easier to identify the flag passed to the binary (-t).
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-04-03 21:22:16 +01:00
AntonioND
01a710a47d
Remove Zero Page linker patch RPN_PCEZP
...
This patch isn't used because it's meant to be an optimization for
labels in the memory region 0x2000-0x20FF. That memory region doesn't
have anything special on the Game Boy, and there are no instructions
optimized to read or write from there, so it was probably meant for
another hardware that was supported by ASMotor in the past.
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-04-02 16:19:45 +01:00
AntonioND
469e3e7c86
Merge branch 'contiguous-wram' of git://github.com/TwitchPlaysPokemon/rgbds into TwitchPlaysPokemon-contiguous-wram
2017-03-15 21:00:06 +00:00
AntonioND
9193710ff9
Merge pull request #131 from Sanqui/overlay
...
Add overlay to rgblink
2017-03-15 20:42:32 +00:00
Ben10do
3dcfe2b9f6
Add support for OAM Sections
...
Allows sections (and labels within) to be defined that correspond to the Game Boy’s Object Attributes Memory.
2017-03-10 22:18:14 +00:00
Sanqui
bd00b9ab59
Merge branch 'master' of github.com:rednex/rgbds into overlay
2017-03-02 22:46:19 +01:00
Ben10do
e4cbf773f6
Add alignment of sections to objects
...
Aligned sections can now be created with out_NewAlignedSection(). This information is stored in created object files, and read by the linker.
The names of each section are also included in the object file, enabling potential improvements to error messages in the future.
2017-02-19 22:35:32 +00:00
scnorton
6d1c60b0a6
Contiguous WRAM
2017-02-06 16:31:57 -05:00
Sanqui
2e9c68f8c3
Add overlay file option to rgblink (-O)
...
This option takes a file and places fixed sections on top of it.
Should prove useful for patches and partial disassemblies.
2016-03-28 01:02:05 +02:00
stag019
ebc9a4b786
Merge include/link/types.h and include/asm/types.h into include/types.h
2015-03-07 16:04:07 -05:00
stag019
db54c2ebd6
Replace all ASMOTOR references with RGBDS.
2015-03-07 15:42:06 -05:00
stag019
55974bc743
Only define _MAX_PATH is it isn't already defined.
2013-12-23 14:52:37 -05:00
Anthony J. Bentley
7770827cce
Redefine consistent names for section types, and document the changes.
2013-07-31 22:14:31 -06:00
Anthony J. Bentley
7ab9742299
Implement SRAM sections.
2013-07-31 20:15:40 -06:00
Anthony J. Bentley
da19380cc4
Add a new WRAMX section type, for banked (CGB) WRAM sections.
2013-06-19 21:19:51 -06:00
Anthony J. Bentley
51c01e3aad
Remove some dead code.
2013-05-19 16:14:31 -06:00
Vegard Nossum
afe33e1162
link: move includes to include/link/
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 09:22:49 +02:00