|
From: | MatthewS.Grochowalski at ge dot com |
Subject: | [Bug ld/18452] ld allows overlapping sections |
Date: | Thu, 17 Mar 2016 17:46:41 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18452 --- Comment #2 from Matt Grochowalski <MatthewS.Grochowalski at ge dot com> --- https://sourceware.org/git/?p=binutils.git;a=commit;h=ec457111c02dd5a5e29ce7ce30e95a17ef470c78 The linker previously detected section conflicts involving the .bss section, but this commit in 2009 changed it to not check sections that's aren't loaded from the executable (I'm not clear what the reason for this was). https://sourceware.org/git/?p=binutils.git;a=commit;h=ac3f93dc025a4dcf2c7dcf12039c46555b8a7ecd It was changed shortly after that to ignore sections that aren't allocated as well. "!(s->flags & SEC_LOAD) || !(s->flags & SEC_ALLOC)" should likely be "!(s->flags & SEC_LOAD) && !(s->flags & SEC_ALLOC)". Or just "!(s->flags & SEC_ALLOC)" (can a section be SEC_LOAD but not SEC_ALLOC?). -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |