Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
How a linker works (continued)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Ben Bacarisse, post: 3495443"] *Please* post these articles in comp.programming. I'd join in a lot more if I could do so and be topical. However, you are dead set on knocking gcc without understanding it so... <off-topic> gcc uses the GNU linker ld. ld merges the common blocks to make tab the larger of the two size regardless of the linking order. In this case, I can't see why you'd want a diagnostic[1]. When a compilation unit initialises the table (so it can't be merged) the GNU linker *does* produce a warning: /usr/bin/ld: Warning: size of symbol `tab' changed from 1024 in t1.o to 16 in t2.o </off-topic> Please post it where it belongs. [1] OK, a case can be made for a diagnostic in all such cases, but you are suggesting the gcc leads the programmer silently into a trap. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
How a linker works (continued)
Top