binfmt/coredump: remove the block fragmentation

Hide the segmentation details to backend implementation

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-01-11 23:20:20 +08:00 committed by Xiang Xiao
parent 2e35b6d611
commit 47f9ec9c45

View File

@ -43,7 +43,6 @@
****************************************************************************/
#define ELF_PAGESIZE 4096
#define ELF_BLOCKSIZE 1024
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define ROUNDUP(x, y) ((x + (y - 1)) / (y)) * (y)
@ -82,8 +81,7 @@ static int elf_emit(FAR struct elf_dumpinfo_s *cinfo,
while (total > 0)
{
ret = cinfo->stream->puts(cinfo->stream, ptr, total > ELF_BLOCKSIZE ?
ELF_BLOCKSIZE : total);
ret = cinfo->stream->puts(cinfo->stream, ptr, total);
if (ret < 0)
{
break;