- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is one to watch out for. If you declare a global variable in bss ...
unsigned int fred; ... then decide to move it to another section, say into NVR somewhwre ... unsigned int fred __attribute__((section(".nvr"))); ... if you fiorget to remove the declaration of the bss variable the linker doesn't seem to mind that there are two variables of the same name. No warning or error is issued. All references to the variable use the one in the named section. Banx.Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page