* Use .type in ARM vectors.S
@ 2009-02-14 2:48 Jonathan Larmour
0 siblings, 0 replies; only message in thread
From: Jonathan Larmour @ 2009-02-14 2:48 UTC (permalink / raw)
To: ecos-patches
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arch/current/ChangeLog,v
retrieving revision 1.116
diff -u -5 -p -r1.116 ChangeLog
--- ChangeLog 9 Feb 2009 16:46:42 -0000 1.116
+++ ChangeLog 14 Feb 2009 02:48:18 -0000
@@ -1,5 +1,11 @@
+2009-02-14 Jonathan Larmour <jifl@eCosCentric.com>
+
+ * src/vectors.S: Use .type xxx, function everywhere where
+ a global associated with code is defined. Otherwise objdump
+ treats it as data.
+
2009-02-09 Nick Garnett <nickg@ecoscentric.com>
* src/vectors.S (start): The loop to initialize BSS was using a
BLS to terminate. This caused an extra zero to be stored beyond
the end of __bss_end. Usually this is benign, but when __bss_end
Index: src/vectors.S
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arch/current/src/vectors.S,v
retrieving revision 1.61
diff -u -5 -p -r1.61 vectors.S
--- src/vectors.S 9 Feb 2009 16:46:42 -0000 1.61
+++ src/vectors.S 14 Feb 2009 02:48:18 -0000
@@ -105,10 +105,11 @@
// Function definition, start executing body in ARM mode
#define FUNC_START_ARM(_name_, _r_) \
.code 16 ;\
.thumb_func ;\
.globl _name_ ;\
+ .type _name_, function ;\
_name_: ;\
ldr _r_,=_name_ ## _ARM ;\
bx _r_ ;\
.code 32 ;\
_name_ ## _ARM:
@@ -126,10 +127,11 @@ _name_ ## _ARM:
#define ARM_MODE(_r_, _l_)
// Function definition, start executing body in ARM mode
#define FUNC_START_ARM(_name_, _r_) \
.globl _name_; \
+ .type _name_, function ;\
_name_:
#endif
@@ -343,10 +345,11 @@ warm_reset:
#endif
// =========================================================================
// Real startup code. We jump here from the reset vector to set up the world.
.globl start
+ .type start,function
start:
LED 5
#if defined(CYG_HAL_STARTUP_RAM) && \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-14 2:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-14 2:48 Use .type in ARM vectors.S Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).