This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
[Bug 1001142] User defined linker sections.
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-patches at ecos dot sourceware dot org
- Date: Tue, 15 Feb 2011 15:00:45 +0000
- Subject: [Bug 1001142] User defined linker sections.
- Auto-submitted: auto-generated
- References: <bug-1001142-104@http.bugs.ecos.sourceware.org/>
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001142
--- Comment #22 from Ilija Kocho <ilijak@siva.com.mk> 2011-02-15 15:00:38 GMT ---
(In reply to comment #16)
> About the attached use/test case:
>
> Due to prescan we need proxies. In the submitted example I am using John's
> names CYG_USER_SECTION_XXX() for proxies since they are supposed to appear in
> user code. Concatenation macros are named __CYG_USER_SECTION_XXX() respectively
> and they are also used by USER_SECTION() (see NOTE below.)
>
> The example includes both correct and wrong code (with respect to prescan)
> selectable by TRY_RIGHT switch.
> This example should be combined with cortexm_ld_1.diff, the patch that I am
> posting in following attachment.
>
> NOTE: __CYG_USER_SECTION_XXX() macros, for this example also appear (as a
> copypaste) in cortexm.ld since I couldn't locate a suitable header.
Sometimes the solution is doing nothing or next to nothing.
Since method for production of section boundaries is fixed, straight-forward
and common (for all sections): __<section_name>_start __<section_name>_end, it
could be documented (possibly within
http://ecos.sourceware.org/docs-latest/ref/hal-linker-scripts.html ) with some
code snippet for zeroing of section.
I guess USER_SECTION() would need a proper documentation anyway.
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.