Movatterモバイル変換


[0]ホーム

URL:


This is the mail archive of thelibc-alpha@sourceware.orgmailing list for theglibc 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]

Re: [PATCH 0/2] Multiarch hooks for memcpy variants


On Fri, Aug 11, 2017 at 1:58 PM, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:>> as far as i understand *_chk calls are only generated when> compiling with -D_FORTIFY_SOURCE=* and most of these checks> could be inlined by the compiler (i.e. there is no need> for runtime support in principle).Calls to _chk functions that survive in the executable are for caseswhere the compiler couldn't prove the call was safe - for instance, ifthe size of data copied can vary at runtime.Using _FORTIFY_SOURCE means you accept *some* extra overhead, but wedon't want it to sacrifice *all* machine-specific optimizations.People do things like compiling entire "hardened" distributions withit on.> may be the generic __memcpy_chk should call the ifunced> memcpy so it goes through an extra plt indirection, but> at least less target specific code is needed.I was thinking of making this suggestion myself.  I think that wouldbe a better maintainability/efficiency tradeoff.  (Of course, I alsothink we shouldn't bypass ifuncs for intra-libc calls.)zw

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav:[Date Prev] [Date Next][Thread Prev] [Thread Next]

[8]ページ先頭

©2009-2026 Movatter.jp