On 11/12/15 11:50, Chris Johns wrote:
>>
>>The only reason I ask is the trace linker needs external symbols to
>>work and they are interesting symbols. Static symbols cannot be
>>remapped by gld.
>
>I think tracing is not really interesting in the system startup
>sequence. It is single threaded with interrupts disabled. So, in case
>there is a problem, a classic debugger should be sufficient.
It can provide a useful way to measure timing. I suppose someone
interested can change the code.

All the constructors are used via function pointers, so without link-time optimization and a very smart compiler, they must exist as a single function. You can use objcopy --globalize-symbol if you really need a global symbol, e.g. for tracing.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to