This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
"Sam Lauber" <sam124@operamail.com> writes: > How can the linker combine them? The _program_ is way outside GCC's > control. The assembler and linker don't modify the generated > assembly. Otherwise, BFD and binutils would become very twisted up, > and thus make the assembler world on GCC diffrent than it is now. In fact, when the same string appears in multiple object files, recent version of the GNU linker will combine them. Try it. If you want to figure out how it works, look closely at the generated assembly code and at the linker source code. When somebody with experience tells you that something is so, it behooves to at least give it a try before you claim that it can not be so. Ian
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |